Chunks vs Arrays - surprising benchmarking results
kevin at runrev.com
Thu Aug 6 07:00:07 EDT 2009
On 05/08/2009 21:02, "Richard Gaskin" <ambassador at fourthworld.com> wrote:
> Excellent sleuthing, Trevor. Confirmed: with that change I'm getting
> the same results. Who would have thought there could be so much
> overhead moving a custom property array into a variable array?
Bear in mind that when retrieving a custom property, the engine has to look
up whether there is a getProp handler for it. Locking messages should give
you an improvement.
The main difference between arrays and chunks is that arrays will continue
to access huge data sets in linear time, whereas chunks (depending on
exactly what you're doing) will slow down as the data set gets larger.
Kevin Miller ~ kevin at runrev.com ~ http://www.runrev.com/
Runtime Revolution - User-Centric Development Tools
More information about the Use-livecode