While we're on displacement activities :)

One of the things that can slow Rev down in a long for loop is the building up of a long output string (I suspect that an awful lot of copying and moving of memory starts to happen).


I made a little test of something suggested by someone on this list (Eric Miclo?), that is, that it can be noticably quicker to build up a long string into a file rather than a variable when dealig with a lot of data. What I found on this 2.16G MacBookPro was that after you get to sizes bigger than a few Mb, for each doubling of size, writing to a file doubles the time, while using a variable quadruples the time.

If you're interested, you can get the stack I made from: http:// maspub.s3.amazonaws.com/listTest.rev

Best,

Mark

On 5 Feb 2009, at 19:45, Ben Rubinstein wrote:

all functions are slightly faster if the source string contains more high-code characters (ie if the output string is shorter)

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to