lineoffset slower than "repeat for each line j" ?
Richard Gaskin
ambassador at fourthworld.com
Thu May 29 11:15:07 EDT 2008
jbv wrote:
> actually I guess that lineoffset and filter, once compiled, use rather
> complex routines, while "repeat for each line" remains much closer to raw
> and efficient C code...
Yes, that's my understanding, at least for the filter command which
drops into a rather complex regex subsystem, so while it's darn
convenient at times it almost always benchmarks slower than alternatives.
I don't understand why lineoffset is slower, however, and have submitted
a request to have it reviewed for potential optimization:
<http://quality.runrev.com/qacenter/show_bug.cgi?id=6504>
Thanks for bringing this up. As the engine gets ever more optimized,
any performance gaps between our scripts and native compiled C code get
ever smaller, allowing us to use those clock cycles saved on adding new
features in our apps.
--
Richard Gaskin
Managing Editor, revJournal
_______________________________________________________
Rev tips, tutorials and more: http://www.revJournal.com
More information about the use-livecode
mailing list