logoalt Hacker News

mac3nlast Friday at 5:19 PM1 replyview on HN

what this could really use is a compression format that compresses variable amount of text into fixed-size blocks. with that, it could binary-search compressed text


Replies

agavralast Friday at 9:19 PM

RocksDB actually does something somewhat similar with its prefix compression. It prefix-compresses texts and then "resets"the prefix compression every N records so it stores a mapping of reset point -> offset so you can skip across compressed records. It's pretty neat