You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🚀 Optimize reading from a ReadableStream with buffered chunks. (#170)
When the stream has a chunk available in its internal queue, defaultReader.read() and byobReader.read(view)
will now immediately return a resolved promise using Promise.resolve().
This turns out to be (slightly) faster than creating a new Promise and then immediately resolving it.
🚀 Optimize piping from a ReadableStream with buffered chunks. (#170)
When the stream has one or more chunks available in its internal queue, pipeTo() will now read all available chunks
in a single batch and write them to the destination (while still respecting backpressure).