google / google/snappy

Question about padding use in the framing format

Open
#215 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
6.6k
Forks
1.1k
Avg merge
3d 5h
Merged PRs (30d)
4

Description

Hi everybody,
I need to have a compressed file that I can random-access in chunks from an http server, using range requests (something like sozip but with faster decompression times); I am currently doing framing snappy compression splitting the original files in fixed chunks and producing a second file containing an index for the chunks; this works ok for my use case but... I have two files to move around.

I was thinking on using the padding chunk type to store the index directly inside the compressed file I generate, is this a bad idea? The spec says that padding should be all zero but, regardless, client must just skip it.

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.