-
Notifications
You must be signed in to change notification settings - Fork 178
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
Optimize IntSet.Bin #998
Merged
Merged
Optimize IntSet.Bin #998
Commits on Apr 6, 2024
-
* Replace the separate Prefix and Mask Int fields in the Bin constructor with a single Int field which contains both merged together. This reduces the memory required by a Bin from 5 to 4 words, at the cost of more computations (which are cheap bitwise ops) being necessary for certains operations. This follows a similar change done for IntMap.Bin. * Benchmarks show that runtimes for most operations remain unchanged or decrease by a small amount (<10%). As expected, allocations are consistently lower by 11-16% for all set operations that have to make O(log n) allocations. * The functions and types used by both IntSet and IntMap have been moved into a IntTreeCommons module.
Configuration menu - View commit details
-
Copy full SHA for 080dde1 - Browse repository at this point
Copy the full SHA 080dde1View commit details -
Configuration menu - View commit details
-
Copy full SHA for b3ae761 - Browse repository at this point
Copy the full SHA b3ae761View commit details -
Configuration menu - View commit details
-
Copy full SHA for 40f8503 - Browse repository at this point
Copy the full SHA 40f8503View commit details
Commits on Apr 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3d49a54 - Browse repository at this point
Copy the full SHA 3d49a54View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a1c12b - Browse repository at this point
Copy the full SHA 4a1c12bView commit details -
Configuration menu - View commit details
-
Copy full SHA for fce6246 - Browse repository at this point
Copy the full SHA fce6246View commit details
Commits on Apr 9, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d18a3c6 - Browse repository at this point
Copy the full SHA d18a3c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for bd18faf - Browse repository at this point
Copy the full SHA bd18fafView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.