Browse Source

Increase ReadStream bufferSize to 64k

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
24ac87f543
  1. 4
      lib/fs.js

4
lib/fs.js

@ -6,7 +6,7 @@ var binding = process.binding('fs');
var fs = exports;
var kMinPoolSpace = 128;
var kPoolSize = 40*1024;
var kPoolSize = 40 * 1024;
fs.Stats = binding.Stats;
@ -618,7 +618,7 @@ var ReadStream = fs.ReadStream = function(path, options) {
this.flags = 'r';
this.mode = 0666;
this.bufferSize = 4 * 1024;
this.bufferSize = 64 * 1024;
options = options || {};

Loading…
Cancel
Save