Increase TLS pool size for perf increase

v0.7.4-release
Ryan Dahl 2011-03-28 17:37:14 -07:00
parent 98b56636c0
commit c0b461d9a1
1 changed files with 1 additions and 1 deletions

View File

@ -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);