Re: [whatwg/streams] WritableStreamDefaultWriterGetDesiredSize(writer) cannot in general be used to determine size of chunks read by pipeTo (#938)

Even if we assume bytes, we still have to sanity check the value. For TextDecoderStream, I want to set HWM to 1 to avoid adding unneeded buffering to the pipe. But if pipeTo() read 1 byte at a time, that would be pretty catastrophic for efficiency.

On the other end of the scale, the writable might have HWM set to `Infinity` to disable flow control altogether.

I haven't got any good answer except maybe to say that "implementations should choose a reasonable value".

-- 
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/938#issuecomment-410205391

Received on Friday, 3 August 2018 09:53:55 UTC