which is faster for searching?
jbv at souslelogo.com
jbv at souslelogo.com
Tue Jun 17 10:38:33 EDT 2014
Larry,
"repeat for each line..." is definitely faster
and
repeat for each line j in myVar
if j contains myText then
end if
end repeat
should be pretty fast.
jbv
> I have a large variable containing about 3000 lines of data - each line
> about 100 characters.
>
> I want to search through the variable and find all the lines that contain
> a specified string
>
> Should I use (repeatedly) "lineoffset...", or should I use "repeat for
> each line..." or maybe some other faster way?
>
> Or with only 3000 lines of data, does it even matter?
>
> TIA
> Larry
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list