From: John Joyce Date: 2007-03-13T02:36:48+09:00 Subject: Re: Efficiency of string parsing On Mar 13, 2007, at 2:02 AM, Tom Pollard wrote: >> But would a Ruby iterator be faster? > > I'm just curious what it is about Ruby iterators (I assume you mean > methods like 'each') that you'd expect them to be more efficient > than the gsub? Iterators/callbacks using Ruby code blocks whatever. Never said I expect them to be faster. I was asking. I don't know how much text is being parsed. I do assume it is unstructured and not indexed in any manner. I'm just wondering if there isn't more to know about why and what for in order to reach the best solution for the situation. Like they say in Perl... there's more than 1 way right? Some ways are just interesting, some are fast, some are useful, etc...