Re: [streams] Merge ReadableByteStream into ReadableStream (#430)

> What if we add some kind of defaultChunkSize or defaultReaderChunkSize option, which would allow the elimination of the if branching we see in both examples.

Yes, I remember that we were discussing automatic chunk allocation before in some context.

That should definitely reduce coding for an author of this kind of an underlying byte source (kicks the fs/socket behind it only when a read()/read(view) happens). I'll try.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/430#issuecomment-194606911

Received on Thursday, 10 March 2016 01:34:38 UTC