-
-
Notifications
You must be signed in to change notification settings - Fork 670
Introduce more faster and memory optimal BitSet as replacment of Set<i32> #2361
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
Conversation
What I'd find interesting in this context is a comparison of |
Here AS bench BitSet vs Set: My results for Chrome for items 100M:
1M is too small for WebAssembly =) |
This algorithm use 1bit to store whether i32 number exists. What will happen if adding I32.MAX? It looks like will alloc 536870912(= 2 ** 32 / 8) bytes memory. |
Yes, |
Benchmark results for 1M items (JS):
Benchmark results for 100M items (Wasm):