Geoff-

Friday, September 13, 2013, 11:52:56 PM, you wrote:

> Can you post your code? I didn't see that. Here's mine for the two tests I
> did, and a simple put after looks 50% faster (90mb vs. 60mb):

Here's mine again, but I like your benchmarks. I did this with a
single repeat loop rather than your nested one, but otherwise I think
we're testing the same thing. I didn't stress-test this the way you
did with large data clumps, so I think I'd trust your conclusions for
real-world applications.

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
 [email protected]


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

Reply via email to