Amn
01-23-2004, 06:04 AM
Sorry I am asking way too many questions and give way too little answers, but....
Flash says Array is native now and is improved in performance, but what does it really mean ?
Here is an array implemented as Object. No reference to Array class. This is looking much like property lookup, where property is numerically identified:
var o = new Object;
o[0] = "helo";
And consider this example, which is the same as above but with native Array:
var o = new Array;
o[0] = "helo";
Are there any differences in performance between the two ? Does Flash documentation really mean that, although numeric property lookup is supported in any object, it is much faster when used with Array ?
Flash says Array is native now and is improved in performance, but what does it really mean ?
Here is an array implemented as Object. No reference to Array class. This is looking much like property lookup, where property is numerically identified:
var o = new Object;
o[0] = "helo";
And consider this example, which is the same as above but with native Array:
var o = new Array;
o[0] = "helo";
Are there any differences in performance between the two ? Does Flash documentation really mean that, although numeric property lookup is supported in any object, it is much faster when used with Array ?