hadn't read that:
This isn't a problem: Finding matching lines is easy. There's some techniques to do this really fast.
But what does this mean?
If you randomize the lines they are - well, randomized. How would this help to find something faster?
If you want to find all lines matching a certain condition: it doesn't matter if they are sorted or not - sorting huge amounts of data takes a lot of time! Nearly always it's faster just to loop through & check each line individually.
Have fun!
PS: For my previous post I used a file with ~55MB & ~1.000.000 lines. Changed to do only this:
Code: Select all
repeat for each line L in myData
wait 0 millisec with messages
if the controlKey is down then exit repeat
if (L is not empty) and (" was " is in L) then
put L & CR after myVar
end if
end repeat
delete char -1 of myVar