-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PERF] Decrease compaction RAM usage and increase speed (#2729)
## Description of changes *Summarize the changes made by this PR.* - Improvements & Bug fixes - BTree of block deltas for postings list is now Vec<i32> instead of IntArray since the overhead of IntArray was seen to be 2 KB per btree add v/s 816 bytes for Vec<i32> - When getting blocks from block deltas at commit time, the block deltas are now drained. This reduces RAM consumption by about 50% - Removed the intermediary postings list builder that was more of an unnecessary complexity and also was doing clones - Changed get() for postings list to read slices instead of Vec<i32> getting rid of one more deep copy. ## Test plan *How are these changes tested?* - [x] Tests pass locally with `pytest` for python, `yarn test` for js, `cargo test` for rust ## Documentation Changes None
- Loading branch information
1 parent
2d049af
commit a7f80ff
Showing
14 changed files
with
470 additions
and
749 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.