-
Notifications
You must be signed in to change notification settings - Fork 211
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
Implement rb::Map::remove
#5599
Conversation
Could you also enable |
rbmap-remove@75422 aka 20230905.44 vs main ewma over 20 builds from 75075 to 75413 Click to see tablemain
rbmap-remove
|
@jeffa5 Thanks for adding this! Can you paste the output of a Looking at the e2e benchmarks, it looks like switching from the CHAMP to the RB currently imposes a 10-25% memory increase, and a 0-5% throughput drop. That's a viable baseline! I'm surprised the memory impact is so pronounced, and expect we can reduce that with some easy future changes (map of pointers to make roll cheaper?). LGTM! |
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.
Thank you!
Output of map_bench (6348ca9):
|
Co-authored-by: Andrew Jeffery <[email protected]>
Resolves #4146
This implements the
remove
function for therb::Map
, making it usable for applications that need a remove!The main benefit of this map over the default is that keys are stored in sorted order, enabling them to be retrieved in that way too.
This also enables the
remove
s for therb::Map
tests and adds the benchmarks for a basic thing to track