From c0b461d9a18c193c269390c6d23841008df098e8 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 28 Mar 2011 17:37:14 -0700 Subject: [PATCH] Increase TLS pool size for perf increase --- lib/tls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tls.js b/lib/tls.js index 58481206131..96af640b5d4 100644 --- a/lib/tls.js +++ b/lib/tls.js @@ -241,7 +241,7 @@ CryptoStream.prototype._push = function() { while (this._writeState == true) { var bytesRead = 0; var chunkBytes = 0; - var pool = new Buffer(4096); // alloc every time? + var pool = new Buffer(16 * 4096); // alloc every time? do { chunkBytes = this._pusher(pool, bytesRead, pool.length - bytesRead);