Way to speed up append strings?
jbv.silences at Club-Internet.fr
Sun Nov 14 10:39:50 EST 2004
> My question is this: is there a way to tell RunRev that I want it
> should start with a big string block (e.g. 64K of memory), when I first
> create the string?
if you know that your string won't grow bigger than 64K
(for instance), you can try to create the string that way :
put " " into myString
repeat while number of chars of myString<64000
put myString & myString into myString
Rev should create a string of 65,536 spaces.
Then, when you update the content of your string, you
shouldn't use "put ... after", but rather :
get myString & newData
put it into char 1 to (number of chars of it) of myString
Hope that helps,
More information about the Use-livecode