summaryrefslogtreecommitdiff
path: root/lib/_stream_transform.js
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2013-02-21 10:51:15 -0800
committerisaacs <i@izs.me>2013-02-21 15:23:18 -0800
commit3b2e9d26480da0c73a3735314bee5910cb3844ab (patch)
tree55b9f481fa21d2a30fa39805fb0c9f8a279196dd /lib/_stream_transform.js
parent089ec586135726e82dc0d25c2e328478d577db24 (diff)
downloadandroid-node-v8-3b2e9d26480da0c73a3735314bee5910cb3844ab.tar.gz
android-node-v8-3b2e9d26480da0c73a3735314bee5910cb3844ab.tar.bz2
android-node-v8-3b2e9d26480da0c73a3735314bee5910cb3844ab.zip
stream: remove lowWaterMark feature
It seems like a good idea on the face of it, but lowWaterMarks are actually not useful, and in practice should always be set to zero. It would be worthwhile for writers if we actually did some kind of writev() type of thing, but actually this just delays calling write() and the overhead of doing a bunch of Buffer copies is not worth the slight benefit of calling write() fewer times.
Diffstat (limited to 'lib/_stream_transform.js')
-rw-r--r--lib/_stream_transform.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/_stream_transform.js b/lib/_stream_transform.js
index 8b75a52b62..b83fedb626 100644
--- a/lib/_stream_transform.js
+++ b/lib/_stream_transform.js
@@ -60,9 +60,7 @@
//
// However, even in such a pathological case, only a single written chunk
// would be consumed, and then the rest would wait (un-transformed) until
-// the results of the previous transformed chunk were consumed. Because
-// the transform happens on-demand, it will only transform as much as is
-// necessary to fill the readable buffer to the specified lowWaterMark.
+// the results of the previous transformed chunk were consumed.
module.exports = Transform;