- From: Yutaka Hirano <notifications@github.com>
- Date: Thu, 26 Feb 2015 23:18:56 -0800
- To: whatwg/streams <streams@noreply.github.com>
Received on Friday, 27 February 2015 07:19:27 UTC
>> Does wait() call required for each read() even for object stream or it'll be just like the old ReadableStream where it's just a kicking switch of pulling. > I think more like the latter. In this way a ReadableByteStream is like a ReadableStream with HWM = 0 that always respects backpressure and doesn't proactively fill up the queue. - Calling wait() many times has virtually no performance penalty on ReadableStream. - Calling wait() allocates a buffer on ReadableByteStream. Are these correct? If so, I'm not sure if a user code expecting ReadableStream can work with ReadableByteStream - It may consume unnecessarily large memory. --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/streams/issues/289#issuecomment-76349533
Received on Friday, 27 February 2015 07:19:27 UTC