heap: Rewrite compaction of interior backings using std::map
Instead of maintaining two separate data structures (a bitmap) and an unordered hashmap for updating interior slots, just keep track of interior slots in a std::map. - std::map::lower_bound is used to provide the bailout that was provided by the sparse bitmap. - The iteration through the objects payload can just be done via iterator increment. Change-Id: I569bd9155bf90bdf300104e8dc2d8ae2dd0dcb63 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1595873 Commit-Queue: Michael Lippautz <mlippautz@chromium.org> Reviewed-by:Kentaro Hara <haraken@chromium.org> Cr-Commit-Position: refs/heads/master@{#657439}
Showing
Please register or sign in to comment