I see. That makes testing of an example a little bit harder. That has to be a huge array for it to be measurable in ms.

yours
Martin.

On 27/02/2012 17:22, Alex Harui wrote:


On 2/26/12 6:10 AM, "Martin Heidegger"<m...@leichtgewicht.at>  wrote:
I am not sure how you coded that. I tried it and in my tests custom data
structures [1] were a lot faster (10x).
Did i understand something wrong?

I didn't run your test case, but your array example is creating objects on
the fly and stuffing the array, both of which are expensive.  In my test,
the array is just a sequence of values so the abc code just does a ton of
pushXXX then newArray


Reply via email to