next.js
b0420899 - [CC] Avoid unnecessary conversions to a stream (#94192)

Commit
48 days ago
[CC] Avoid unnecessary conversions to a stream (#94192) In both the use-sites of `prependIsPartialByte` we actually have all the stream chunks available as an array, so we can avoid making a whole TransformStream. This was especially unnecessary in the static prerender codepath, where we'd turn the chunks into a stream, transform the stream, and immediately `streamToBuffer` it right after.
Author
Parents
Loading