echojs icon indicating copy to clipboard operation
echojs copied to clipboard

Sparse Array objects impl

Open carlosalberto opened this issue 12 years ago • 0 comments

It looks like SpiderMonkey, in the case of sparse arrays, fallbacks to simple property access* (i.e. arr[450] gets the '450' property, if any).

Wouldn't that work here for now, instead of creating a huge array? (for arrays > SOME_HUGE_VALUE, that is).

  • It looks like SP uses some checks here and there to detect this case, based on the use-case.

carlosalberto avatar Dec 18 '13 06:12 carlosalberto