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

We have work to optimize our native promises.  The main cost you are probably seeing here, though, is increased load due to cycle collecting so many c++ backed js objects.

The native promise will improve for sure, but I don't see it improving by 300%.  I think the microtask async schedule is the main source of delay here and I don't see how that can be optimized away.

So I see this as an "async required" problem and not Promise specific.  If we could implement this with just callbacks without hitting set time out clamping I think we would see similar results.

Happy to be proven wrong, though!

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

Received on Friday, 10 April 2015 15:57:41 UTC