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.

On 9/9/13 10:13 PM, "Justin Mclean" <jus...@classsoftware.com> wrote:

>Hi,
>
>Was looking into the cell selection code and noticed that the ADG has
>this throughout:
>cellSelectionData[uid][columnIndex.toString()]
>
>Is there any sane reason for not having the column index as just
>columnIndex (ie a plain int)? Int index lookup is faster than string
>index look up right?
>
>Out of curiousosity I removed all of the the toStrings and the ADG
>mustella test pass and not surprisingly it's a little faster.
>
>Is there something obvious I'm overlooking?
>
>Thanks,
>Justin

Reply via email to