I am new to AS3, but I heard that depending on call order,
one could see a difference in performance. So, I wrote a simple
test (attached) and am seeing some weird results. I am wondering if
anyone else has see this, or can verify that they see this on their
machines as well.
A summary: if one function calls another function, one of
them will be almost 2x faster with the same code.
In my example, I have a simple loop that is timed. After it
it is done, it calls another function that has the same loop and is
also timed. Then after this completes, it calls another function,
etc. Here are the results:
The first number is just to verify that they are calculating
the same value within the loop. The second number is the number of
seconds it took to do the same calculation. I have tried a couple
of variations on the loop, using int vs uint vs Number, simple vs
complex calculations, etc - this question is a basic summary of the
core issue - variance in timings on the same code.
It has been 2 weeks... no one has any ideas on this? I have a
few of these types of performance weirdnesses with code samples. Is
this the correct place to find answers, or at least let the
developers of AS to know about them?