Thomas wrote:
> Hi
> 
>>>The code is part of a 3D-engine. Array-access is supposed to be faster then
>>>Object-prop-access (did some testing on it).
> 
> 
> Are you sure ? Because I've made some tests too when I've developped
> matrix and vector class of sandy ( 3D engine available here :
> http://www.osflash.org/sandy ), but my tests showed that Array access
> is much slower.
> 
> Have you got an example ?
> THanks
> THomas

Array access produces exactly the same bytecode as object access. That 
means that a[0] is same as doing a.0 (if it was possible). Since Arrays 
are also treated as objects, I think there shouldn't be any difference 
between using array and objects. But actually, it's depending on the way 
field tables are implemented in Flash Player.

Nicolas

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to