- From: Domenic Denicola <notifications@github.com>
- Date: Thu, 30 Mar 2017 03:06:57 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/streams/pull/720/review/29950056@github.com>
domenic commented on this pull request.
> @@ -642,10 +642,15 @@ ReadableStream(<var>underlyingSource</var> = {}, { <var>size</var>, <var>highWat
* While WritableStreamDefaultWriterGetDesiredSize(_writer_) is ≤ *0* or is *null*, the user agent must not read
from _reader_.
* If _reader_ is a <a>BYOB reader</a>, WritableStreamDefaultWriterGetDesiredSize(_writer_) should be used to
- determine the size of the chunks read from _reader_.
- * Otherwise, WritableStreamDefaultWriterGetDesiredSize(_writer_) may be used to determine the flow rate
- heuristically, e.g. by delaying reads while it is judged to be "low" compared to the size of chunks that have
- been typically read.
+ determine the size of the chunks read from _reader_. Otherwise, the desired size may be used to determine the
+ flow rate heuristically, e.g. by delaying reads while the desired size is judged to be "low" compared to the
+ size of <a>chunks</a> that have been typically read.
+ * After taking into account these backpressure signals, reading and writing should be done as fast as possible;
+ other signals should not be used to delay the continual reading/writing.
Discussed offline---went in the direction of removing the heuristics instead.
--
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/pull/720#discussion_r108887729
Received on Thursday, 30 March 2017 10:07:30 UTC