projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98b5663
)
Increase TLS pool size for perf increase
author
Ryan Dahl
<ry@tinyclouds.org>
Tue, 29 Mar 2011 00:37:14 +0000
(17:37 -0700)
committer
Ryan Dahl
<ry@tinyclouds.org>
Tue, 29 Mar 2011 00:37:14 +0000
(17:37 -0700)
lib/tls.js
patch
|
blob
|
history
diff --git
a/lib/tls.js
b/lib/tls.js
index
5848120
..
96af640
100644
(file)
--- 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);