Re: [whatwg/streams] Could a byte stream read directly into and out of a SAB (w/o transfer)? (#757)

> If we switch to callbacks, we will probably just run into the problem of the callback being called too often.

FWIW, I did some prototyping to try to benchmark this before streams were standardized:

https://blog.wanderview.com/blog/2015/06/19/evaluating-streams-api-async-read/

I'm sure there are a lot of problems with what I did, but I think the conclusion was that promises were no worse than callbacks in the end.  So I suspect you are correct better chunking is the answer.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/757#issuecomment-509272667

Received on Monday, 8 July 2019 15:26:47 UTC