If it is an object, however, dot notation seems to be faster than index: [1]

EdB

1: http://jacksondunstan.com/articles/855



On Tue, Sep 10, 2013 at 8:50 AM, Erik de Bruin <e...@ixsoftware.nl> wrote:
> According to [1], array is way faster and a little tweak might make it
> even more so.
>
> EdB
>
> 1: http://jacksondunstan.com/articles/1305
>
>
>
> On Tue, Sep 10, 2013 at 8:39 AM, Justin Mclean <jus...@classsoftware.com> 
> wrote:
>> HI,
>>
>>> If cellSelectionData[uid] is an Array, then yes, int lookup should be
>>> faster.  If it is an object, I would think it would be the same although
>>> maybe the int gets converted to string in the VM so you save a function
>>> call.
>>
>> It's an object but arrays extend object anyway. Do you know if the faster 
>> int lookup is in the array class or the object class?
>>
>> Thanks,
>> Justin
>
>
>
> --
> Ix Multimedia Software
>
> Jan Luykenstraat 27
> 3521 VB Utrecht
>
> T. 06-51952295
> I. www.ixsoftware.nl



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Reply via email to