-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change the default HWM for transform stream readableStrategy to 0
This reduces "buffer bloat" in pipes. The most significant change is that now by default transform() is called until something is read. In normal use, TransformStream will be used in a pipe and a transform() will be triggered immediately to fill the queue in the following writable. So the difference from the point of view of everyday use is minimal. If the highWaterMark passed to the TransformStream constructor is undefined (or not present) it will be changed to zero before passing it on to the ReadableStream constructor. Some tests assumed that transform() would be called without anything being read and so have been fixed. In most cases the tests were fixed by supplying an explicit highWaterMark to the constructor. Verify that default strategies have the expected values. Closes #777.
- Loading branch information
Showing
5 changed files
with
66 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters