Skip to content

v4.3.0

Latest

Choose a tag to compare

@MattiasBuelens MattiasBuelens released this 15 May 13:50
· 5 commits to master since this release
  • 🚀 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).
    • These optimizations were inspired by Node.js.