New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix readable stream default highWaterMark #11

Merged
merged 1 commit into from Sep 25, 2017
Jump to file or symbol
Failed to load files and symbols.
+5 −0
Diff settings

Always

Just for now

View
@@ -95,6 +95,11 @@ function split (matcher, mapper, options) {
// this stream is in objectMode only in the readable part
stream._readableState.objectMode = true
// objectMode default hwm is 16 and not 16384
if (stream._readableState.highWaterMark && !options.highWaterMark) {
stream._readableState.highWaterMark = 16
}
stream._last = ''
stream._decoder = new StringDecoder('utf8')
stream.matcher = matcher
ProTip! Use n and p to navigate between commits in a pull request.