which is faster for searching?
m.schonewille at economy-x-talk.com
Tue Jun 17 10:38:59 EDT 2014
If you want to do a one-time search, possible invoked by a user action,
3000 lines is nothing. Don't bother about speed and just use the most
convenient way to search.
If you want to search repeatedly without user interactions between the
searches, speed may be important. In that case, a repeat for each loop
may be surprisingly fast. If you just want to find relevant lines and
dispose of irrelevant lines, the filter command will probably be what
you need, especially with its recently introduced new features.
Economy-x-Talk Consulting and Software Engineering
Installer Maker for LiveCode:
Buy my new book "Programming LiveCode for the Real Beginner"
LiveCode on Facebook:
On 6/17/2014 16:22, larry at significantplanet.org wrote:
> 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?
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode