Skip to content

Commit a932430

Browse files
committed
buffer: increase default poolSize
1 parent c0a7020 commit a932430

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/api/buffer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1402,7 +1402,7 @@ console.log(Buffer.isEncoding(''));
14021402
added: v0.11.3
14031403
-->
14041404

1405-
* {integer} **Default:** `8192`
1405+
* {integer} **Default:** `16384`
14061406

14071407
This is the size (in bytes) of pre-allocated internal `Buffer` instances used
14081408
for pooling. This value may be modified.

lib/buffer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ const constants = ObjectDefineProperties({}, {
140140
}
141141
});
142142

143-
Buffer.poolSize = 8 * 1024;
143+
Buffer.poolSize = 16 * 1024;
144144
let poolSize, poolOffset, allocPool;
145145

146146
const encodingsMap = ObjectCreate(null);

0 commit comments

Comments
 (0)