Re: [streams] Support reading bytes into buffers allocated by user code on platforms where only async read is available (#253)

Thank you @domenic, @tyoshino, as I said before, (A) looks good to me.

https://github.com/whatwg/streams/issues/253#issuecomment-77462296

> What about for byte streams?
> ```
> rbs.read(view1).then(...);
> rbs.read(view2).then(...);
> ```
> This seems to imply that we need the "read request" queue, since otherwise there is no way to feed multiple buffers in at once.

Is there any possibility that feeding multiple buffers has a performance gain?
@tyoshino suggested a case where pull()'s cost is high before, but because of the following reasons, I don't think we will suffer from it.
 - Object streams have a queue.
 - For byte streams, the read() calling cost should be negligible if the given buffer is large enough.



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

Received on Friday, 6 March 2015 16:20:14 UTC