Re: [whatwg/streams] Add WritableStreamDefaultController.releaseBackpressure() (PR #1190)

Hmm, good point. We don't know if or when `transform()` will call `enqueue()`. It might do it synchronously (e.g. for an identity transform or for `TextDecoderStream`), in which case buffering doesn't help and writable HWM = 0 would make more sense. But we cannot assume that. 🤔

If we don't change the default, we should document how authors can construct an unbuffered transform stream, and when they should use this. We should also go through other specifications that use `TransformStream` and check if they should have writable HWM 0 or 1.

-- 
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/1190#issuecomment-982487879

Received on Tuesday, 30 November 2021 10:14:37 UTC