Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sparse Array objects impl #8

Open
carlosalberto opened this issue Dec 18, 2013 · 0 comments
Open

Sparse Array objects impl #8

carlosalberto opened this issue Dec 18, 2013 · 0 comments

Comments

@carlosalberto
Copy link
Contributor

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant