Skip to content
Commit Detail

Commit 68b4a98

Author
Felix Hanau <felix@cloudflare.com> 2024-07-30 13:51:01 -0400
Parents
90901c2
Tree
0398f5b
Increase Compression Streams output buffer size

Since zlib uses 256KiB of memory per compression stream with default settings, a
size of 16KiB will not increase memory usage by a large proportion. This should
make processing data slightly faster. Ideally we'd want this to be larger than
deflate's 32KiB window size which would allow zlib to avoid some extra copying
during decompression, but that can be done at a later time alongside other
compression optimizations.

Files changed

1 file changed~1 modified