Skip to content
Commit Detail

Commit 90901c2

Author
Felix Hanau <felix@cloudflare.com> 2024-07-29 20:01:14 -0400
Parents
939dddd
Tree
fd96d6f
Reduce excessive copying in Compression Streams API

In the Compression Streams API, introduce a helper class to only shift output
data when this would reduce output vector size significantly. This results in
the leading bytes of the output vector becoming invalid when reading only parts
of it, which requires careful tracking but avoids having to move the output data
with every read from the buffer.

Files changed

1 file changed~1 modified