fs: Change default WriteStream config, increase perf
authorisaacs <i@izs.me>
Sun, 3 Feb 2013 20:53:33 +0000 (12:53 -0800)
committerisaacs <i@izs.me>
Sat, 16 Feb 2013 02:48:43 +0000 (18:48 -0800)
commit8476aefc8e21fb8db597937c7e8fbc3490a72f39
tree8ed881bd065658a72437d86436aece25f66653f7
parent9299168f2a2ea231f63731894bc93e3807d1065a
fs: Change default WriteStream config, increase perf

This increases fs.WriteStream throughput dramatically by removing the
"higher default water marks" for fs.WriteStream.

Also includes a benchmark.  Current performance is significantly higher
than v0.8 for strings at all tested levels except size=1.  Buffer
performance is still lackluster.

Further improvement in the stream.Writable base class is required, but
this is a start.
benchmark/fs-write-stream-throughput.js [new file with mode: 0644]
lib/fs.js