anvaka / anvaka/set-vs-object

Scope of the test

Open
#9 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
67
Forks
5
PR merge metrics
No merged PRs in 30d

Description

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](https://user-images.githubusercontent.com/3491218/68626874-a07bb700-04dc-11ea-8f68-1bfd9434afe0.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the article text containing the claim that Sets are generally faster than objects, then review the linked jsperf comparison and image. Clarify the statement to reflect the operation-specific results; done means the article no longer presents the broad claim without the needed qualification.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation, performance
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.