Re: [streams] rsReader.readBatch(numberOfChunks)? rbsReader.read(view, { waitUntilDone: true })? (#320)

Right, that's what I meant by the parenthetical

> the theory that it'd be more efficient for the underlying source to assemble an array of chunks and then deliver in one promise, rather then having consumer code extract from multiple promises then reassemble into an array

But again, without data that promise costs are problematic, this seems premature.

The `read(view, { waitUntilDone })` issue is interesting independently of performance, though, IMO. If only because there's no way to reassemble multiple array buffers into a single array buffer without copying -_-.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/320#issuecomment-90758146

Received on Tuesday, 7 April 2015 23:19:47 UTC