Okay, I think I'm brain damaged -- nope, I figured it out
Mark Wieder
mwieder at ahsoftware.net
Thu Sep 12 19:06:45 EDT 2013
Geoff, Craig-
Thursday, September 12, 2013, 1:30:49 PM, you wrote:
OTOH, this scales linearly and is faster than "before", "after", or
"into": on a half-fast dual-core linux box I get 103 ticks for a
million iterations. Even with the overhead of the handler call, it
looks like this avoids making a copy of the original.
on mouseUp
local temp
local s
local accum
put "XXX" into temp
put the ticks into s
repeat 1000000 -- yes, that's a million
append temp, accum
end repeat
put the ticks - s into field 1
answer length(accum)
end mouseUp
command append pNew, @pString
put pNew after pString
end append
--
-Mark Wieder
mwieder at ahsoftware.net
More information about the use-livecode
mailing list