Browse Source

Increase TLS pool size for perf increase

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
c0b461d9a1
  1. 2
      lib/tls.js

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

Loading…
Cancel
Save