which is faster (a repeat structure question)
Shao Sean
shaosean at unitz.ca
Thu Sep 26 03:59:00 EDT 2002
how about a cross between the two?
constant charsToReplace = "127,128,129,130,...,255" -- you get the idea
repeat for each item i in charsToReplace
replace numToChar(i) with ("=" & toUpper(baseConvert(i,10,16))) in
inputData
end repeat
test1 for me was _waaaay_ slow even at files of just a few hundred k (of
course it's not meant to encode files, just text typed, but some people can
be wordy ;-)
test2 was much quicker..
i split the two tests into 2 seperate buttons to make both identical in
their behaviour
More information about the metacard
mailing list