erigontech / erigontech/erigon

compressor: add `CompressKeys|CompressVals` flags to file-header

Open
#11,302 3 comments 0 reactions 1 assignee Claimed by @AskAlexSharov View on GitHub
ErigonDB
Dominant language
Go
Stars
3.6k
Forks
1.5k
Avg merge
1d 16h
Merged PRs (30d)
455

Description

- use 1-st byte of file to store version. now there is 0, we can assume it's v0.
- increment version of file and store there 1 (v1)
- if file has v0: fallback to existing logic
- if file has v1: reserve 1 byte for feature-flags bitmask
- feature-flags:
```
const (
None = 0b0
CompressKeys = 0b1
CompressVals = 0b10
)
```
let's don't add any logic on this flags now. it's preparation for future experiments.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.