Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/manifest: incrementally generate L0Sublevels for L0 additions
NewL0Sublevels is an expensive method to call, and it's called every time there's a change to L0. This commit adds a faster, incremental generation method for cases when there are only additions to L0 and no deletions from it. This lets us reuse most of the slices in NewL0Sublevels and merge new fileIntervals into it instead of starting from scratch. Fixes cockroachdb#1406.
- Loading branch information