Deleting Data Woefully Slow

Mark Wieder mwieder at ahsoftware.net
Wed Mar 24 22:42:11 EDT 2010


Brian-

Wednesday, March 24, 2010, 7:13:33 PM, you wrote:

> All perform about twice as fast as using "repeat for each". The
> first was about 10% faster than the next two, which makes sense as
> it would only be one seek and one copy. The in-place operations
> would require a seek, a copy, and resizing the original variable. Of
> course if you end up copying back to the original variable
> somewhere, it should be very close to the same.

Can you post your benchmark code? I'm currently seeing 5ms for the
copy-in-place deletion function vs a bit over 100ms for "delete line
-1" or "delete last line" for 5000 runs.

-- 
-Mark Wieder
 mwieder at ahsoftware.net




More information about the use-livecode mailing list