mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
Recommended sizes for input/output buffer + compressor/decompressor #326
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @andrew-aladev on GitHub (Jul 2, 2020).
Hello. zstd has the following functions available:
It will be good to have similar functions for brotli.
For now i am using
256/64 kbfor compressor and64/256 kbfor decompressor.@eustas commented on GitHub (Aug 3, 2023):
Both encoder and decoder are just fine with any input buffer, the bigger - the better.
As for output I recommend "zero-copy" API (
*TakeOutput) it already uses optimal buffer internally.