Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Increase TLS pool size for perf increase
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Mar 29, 2011
1 parent 98b5663 commit c0b461d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tls.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c0b461d

Please sign in to comment.