-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test-tree-bitmap: replace ewah with custom rle encoding
The rules are basically: - each bitmap is a series of counts of runs of 0/1 - each count is one of our standard varints - each bitmap must have at least one initial count of zeroes (which may itself be a zero-length count, if the first bit is set) - a zero-length count anywhere else marks the end of the bitmap For a sparse bitmap, these will tend to be quite short, because long runs are encoded as fairly small counts. The worst case is an alternate 0/1/0/1 bitmap, where we will spend a full byte to specify each bit (thus bloating it by a factor of 8 over an uncompressed bitmap). Signed-off-by: Jeff King <[email protected]>
- Loading branch information
Showing
1 changed file
with
91 additions
and
14 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