another question about finding duplicates

Ken Ray kray at sonsothunder.com
Sun Jan 27 16:10:39 EST 2008


On Sun, 27 Jan 2008 17:01:46 -0200, Andre Garzia wrote:

> This will process each line, putting them into another variable, if
> the line is already there it will move to the next line. It might be
> faster than Klaus approach since it is one loop only and less
> commands. 

True on both counts, but for large data sets it's likely to be 
slower... this is because of the line "if tEntry is in tDestinyData", 
which is going to cause the engine to start at the top and search 
through the entire data set before it concludes whether it found a 
match or not.

Been there, done that, got the t-shirt. ;-)


Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/



More information about the use-livecode mailing list