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

> @wanderview So, one setTimeout is slower than one microtask execution, but many setTimeout is fater than many microtasks execution? Interesting...

I don't think this is the case.  Its more that other factors such as js execution time, GC, etc become more significant in the results.  This means that the 4ms clamping does not come into effect any more.

I think if setTimeout() ran without 4ms clamping then bluebird promises would be faster than native promises, but slower than the sync case. 

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

Received on Friday, 10 April 2015 20:56:52 UTC