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

Scope of the test #9

Open
Hoijof opened this issue Nov 11, 2019 · 0 comments
Open

Scope of the test #9

Hoijof opened this issue Nov 11, 2019 · 0 comments

Comments

@Hoijof
Copy link

Hoijof commented Nov 11, 2019

Hi! Very good article!

I'm worried about the statement that Sets are faster that objects in general when that's not true at all :(

Sets are faster for some specific operations like modification and iteration while Object and Array are WAY faster for access.

So for cases where you want a lot of data easy to access but you don't want to modify it often (like a cache)

Object is way better than set.

https://jsperf.com/ip-playground

Guess which ones are Object and Array.
image

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