Closed arthurprs closed 9 years ago
r? @huonw
(I've picked a reviewer for you, use r? to override)
r? @Gankro
This is super cool!
I'm kinda blurry-brained right now. Feel free to reping me if I don't review this in the next day or two.
If/when this is merged, it'd be good to push a new version to crates.io.
I just published 0.0.5. @arthurprs feel free to toss a "0.0.6 release" commit in here if you want.
@Gankro, rebased and added the 0.0.6 release commit
ping @Gankro (as requested)
r=me with nits
@Gankro Thank you for the review. I rebased the commits to account for your suggestions.
Thanks!
The first commit is obvious.
As for the second, it shaves a good 25% in a remove-insert cycle (as seen in the included benchmark). The memory usage patterns are consistent with a plain HashMap and it's possible to clear the free list by calling shrink_to_fit.