On 10/03/2014 15:33, dunb...@aol.com wrote:
I tried a simple test. I placed 100,000 lines of text into a custom property 
and into a variable. I timed how long it took to directly access a single line, 
10,000 times. It took 2 ticks for the custom property, and almost no time at 
all for the variable.
The question is - *which* "single line" did you test with ?

with the same circumstances, accessing
line       1   takes 3 msec
line 5000   takes 349 msec


So the custom property is slower, but still pretty fast. What really matters is other 
stuff. For example, in the same pair of setups, if I asked for "any line" of 
either the prop or the variable, the process took about 30 seconds. That function call 
took its sweet time. So the lesson here is to watch carefully what is a first order 
issue, and what is a fourth order issue.
It's not just the "any" that takes the time, it's the fact that on average it will be equivalent to the middle line.

-- Alex.

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to