-
Notifications
You must be signed in to change notification settings - Fork 148
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
[#729] improvement: use foreach when iterate Roaring64NavigableMap for better performance #730
Conversation
…gableMap for better performance
Codecov Report
@@ Coverage Diff @@
## master #730 +/- ##
============================================
+ Coverage 60.73% 62.89% +2.15%
+ Complexity 1859 1858 -1
============================================
Files 231 217 -14
Lines 12861 10893 -1968
Branches 1073 1071 -2
============================================
- Hits 7811 6851 -960
+ Misses 4635 3686 -949
+ Partials 415 356 -59
... and 15 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
cc @kaijchen |
The code itself looks good to me. Do you have any numbers or noticed this inefficiency in profiling . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, it also makes the code easier to read.
No, I just construct the data into bitmap and found that the |
…vigableMap for better performance (apache#730) ### What changes were proposed in this pull request? use foreach when iterate over Roaring64NavigableMap for better performance ### Why are the changes needed? From the doc of RoaringBitmap/RoaringBitmap#44, it will reduce GC footprint and be faster when using the `foreach` ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Don't need.
…vigableMap for better performance (apache#730) ### What changes were proposed in this pull request? use foreach when iterate over Roaring64NavigableMap for better performance ### Why are the changes needed? From the doc of RoaringBitmap/RoaringBitmap#44, it will reduce GC footprint and be faster when using the `foreach` ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Don't need.
What changes were proposed in this pull request?
use foreach when iterate over Roaring64NavigableMap for better performance
Why are the changes needed?
From the doc of RoaringBitmap/RoaringBitmap#44, it will reduce gc footprint and be faster when using the
foreach
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Don't need.