Closed codetheweb closed 2 months ago
Fixes get_target_block_id() to run in O(log n) instead of O(n). Shaves around 2.6s off total compaction time for 26k documents.
get_target_block_id()
O(log n)
O(n)
get-target-block-id.trace.zip
How are these changes tested?
Covered by existing tests.
Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the docs repository?
n/a
Please leverage this checklist to ensure your code review is thorough before approving
nice, good change. @sanketkedia can you TAL as well?
Description of changes
Fixes
get_target_block_id()
to run inO(log n)
instead ofO(n)
. Shaves around 2.6s off total compaction time for 26k documents.get-target-block-id.trace.zip
Test plan
How are these changes tested?
Covered by existing tests.
Documentation Changes
Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the docs repository?
n/a