mafintosh / mafintosh/unordered-set

Jsperf compare to `new Set()`

Open
#1 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
20
Forks
3
PR merge metrics
No merged PRs in 30d

Description

using unordered-set mutates the object by setting a own property `_index ` on the objects
I guess this have some performances penalties?

I'm betting the native Set dose some some similar thing but use pointers instead?
my bet is that `new Set()` is faster

Contributor guide

No contributing guide indexed for this repository

Research direction

Review the unordered-set implementation that adds the `_index` property, then create or run a jsperf comparison with native `Set`. Done means the benchmark results clarify the performance difference and account for the mutation concern.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.