strip chars

J. Landman Gay jacque at hyperactivesw.com
Sat Jul 26 12:17:37 EDT 2008


Richard Gaskin wrote:

> I hope I didn't give the impression that "repeat for each" is always 
> faster than RegEx.

No, not at all.

> The trick is finding the precise dividing line, the code complexity/data 
> complexity/depth ratio that benefits one method over another.  If there 
> was a quantified formula for that it would be handy; anyone have a few 
> days available to craft the tests which would give us that ratio? :)
> 

I don't think a ratio can be accurately determined. Every set of data is 
different. It depends not only on how many regex matches there are, but 
the position of each match in every line and in some cases the 
complexity of the match (more complex matches go faster with regex.) It 
is so variable that I would be very surprised if a set of rules could be 
determined.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list