-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prefix every bin-key value with a single uint64 varint containing: (3bit store-type) // 0 for as-is, 1 for basic zstd compression, remainder reserved + (one reserved bit) << 3 // always 0 for now + (3bit compressability) << 4 // 0 if store-type is 0, otherwise `c := (origLen-compLen) * 8 / origLen` // (using integer math, `origLen > compLen > 0` holds for any non-0 store-type) + (IPLD block data size) << 7 // 0 if store-type is 0 Include a rudimentary, dictionary-less zstd compressor as the first non-verbatim storage type 1
- Loading branch information
Showing
4 changed files
with
237 additions
and
20 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
Oops, something went wrong.