Speed testing: Fastest search method

jbv at souslelogo.com jbv at souslelogo.com
Sun Aug 31 12:48:17 EDT 2014


Hi

> Some benchtesting...
>
> Task:
>     Strip lines where a given condition is met.


Have you tried the following method (condition is "line empty")  :
on mouseUp
   set the cursor to watch
   put the long seconds into tStart
   put fld "Data" into tVar
   repeat while tVar contains (return & return)
   	replace (return & return) with return in tVar
   end repeat
   put tVar into fld "output"
   put the long seconds - tStart into fld "timer1"
end mouseUp

jbv





More information about the use-livecode mailing list