I did performance tests ... but these things change very often.
My understanding is that there is no casting going on. It is just a test if the "memory" at x is filled or not. However at a==null it tries to verify if statement a is same as statement b putting each in a memory.

yours
Martin.

On 23/02/2012 00:25, David Arno wrote:
From: Martin Heidegger [mailto:m...@leichtgewicht.at]
Sent: 22 February 2012 15:18
Also another thing is that

if(a == null) is slower than if(a) .... at least compiled with mxmlc.
Is it really? I didn't know that.

Writing code that enables a cast + comparison to happen quicker than a
direct comparison takes some doing! :/

David.




Reply via email to