Skip to content

Commit

Permalink
internal/manifest: Add L0SubLevels methods to pick compactions
Browse files Browse the repository at this point in the history
This change adds methods to L0SubLevels to help pick, score,
and generate L0 -> LBase, and L0 -> L0 compactions, based on
information captured in the data structure about L0 sublevels.

These functions will be called from in compaction.go and
compaction_picker.go in a future change.

Also adds associated datadriven unit tests, and a benchmark.

Covers a large part of #563. Thanks Sumeer for his work, most of
this was written by him.
  • Loading branch information
itsbilal committed May 5, 2020
1 parent 37f7f23 commit 00ded19
Show file tree
Hide file tree
Showing 3 changed files with 2,044 additions and 101 deletions.
Loading

0 comments on commit 00ded19

Please sign in to comment.