question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HashMap and HashSet performance

See original GitHub issue

The current implementations of HashMap and HashSet are orders of magnitude slower than native. I have been investigating performance improvements in hashing on NodeJS using native bindings, but need to perform a thorough performance investigation.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
rbucktoncommented, Sep 24, 2022

An await would break commonjs modules, though it could potentially work fine in an ES module at the top level. It’s something I might consider for the web in the future, when I have a bit more time to work on it.

0reactions
unicomp21commented, Sep 24, 2022

What’s wrong w/ having an await? Lol, wouldn’t the benefit be worth await’ing for? Maybe everything defaults to the slow path (ie no await), but we could have something like collection extensions which require an await? In the browser?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is HashMap faster than HashSet? - java - Stack Overflow
HashMap is faster than HashSet because the values are associated to a unique key. · In HashSet , member object is used for...
Read more >
HashMap vs HashSet in Java - TechVidvan
8. Performance. The speed of HashSet is slower than that of HashMap. The reason that HashMap is faster than HashSet is that the...
Read more >
Differences Between HashMap Vs HashSet In Java
Performance of both is almost the same. But, some developers say that HashMap is slightly faster than the HashSet. 8) Usage. Use the...
Read more >
Difference between HashMap and HashSet - GeeksforGeeks
Speed, It is comparatively slower than HashMap, It is comparatively faster than HashSet because of hashing technique has been used here.
Read more >
5 Vital Terminologies of HashSet vs HashMap - eduCBA
The values in HashMap are associated with unique keys. This key is used for accessing the object. Hence the operations in HashMap is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found