From 24ac87f5437e067e01fc10d71ba4ee58f9ca1994 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 8 Sep 2010 10:14:04 -0700 Subject: [PATCH] Increase ReadStream bufferSize to 64k --- lib/fs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fs.js b/lib/fs.js index 0eb4a35120..3f5e270b81 100644 --- a/lib/fs.js +++ b/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 || {};