Merge pull request #115 from NicolasPelletier/master

Speed up file logging for high rate of logging.
This commit is contained in:
Gareth Jones 2013-02-14 16:32:03 -08:00
commit a15a628311
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,5 @@
var events = require('events'),
Dequeue = require('dequeue'),
util = require('util');
module.exports = BufferedWriteStream;
@ -6,7 +7,7 @@ module.exports = BufferedWriteStream;
function BufferedWriteStream(stream) {
var that = this;
this.stream = stream;
this.buffer = [];
this.buffer = new Dequeue();
this.canWrite = false;
this.bytes = 0;

View File

@ -26,7 +26,8 @@
"lib": "lib"
},
"dependencies": {
"async": "0.1.15"
"async": "0.1.15",
"dequeue": "1.0.3"
},
"devDependencies": {
"vows": "0.6.2",