Feature Request: Resumable stream compression/decompression #74

Closed
opened 2026-01-29 20:31:47 +00:00 by claunia · 1 comment
Owner

Originally created by @YLivay on GitHub (Dec 4, 2015).

Hey!

Brotli's compression ratio and decompression speed makes it a very viable candidate for serving pre-compressed files to decompress on the fly as they are downloading. For big files its common to offer resumable downloads, but with stream decompression its impossible to use without restoring the stream decoder's context at the time it was stopped.

Is it possible add a function to the API to serialize the stream's context and resume it later?

Excuse me if I'm talking nonsense, I'm unfamiliar with the grits of Brotli's implementation :)

Originally created by @YLivay on GitHub (Dec 4, 2015). Hey! Brotli's compression ratio and decompression speed makes it a very viable candidate for serving pre-compressed files to decompress on the fly as they are downloading. For big files its common to offer resumable downloads, but with stream decompression its impossible to use without restoring the stream decoder's context at the time it was stopped. Is it possible add a function to the API to serialize the stream's context and resume it later? Excuse me if I'm talking nonsense, I'm unfamiliar with the grits of Brotli's implementation :)
Author
Owner

@eustas commented on GitHub (Dec 4, 2015):

Hello.

Serialized context may take up to 16 megabytes (the size of the window),...
Could you point to other compressors that have such API, please.
It will help us understand the best practices in the field...

Best regards,
Eugene.

@eustas commented on GitHub (Dec 4, 2015): Hello. Serialized context may take up to 16 megabytes (the size of the window),... Could you point to other compressors that have such API, please. It will help us understand the best practices in the field... Best regards, Eugene.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#74