Skip to content

Commit

Permalink
buffer: increase default poolSize
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Oct 19, 2021
1 parent c0a7020 commit a932430
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/api/buffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -1402,7 +1402,7 @@ console.log(Buffer.isEncoding(''));
added: v0.11.3
-->

* {integer} **Default:** `8192`
* {integer} **Default:** `16384`

This is the size (in bytes) of pre-allocated internal `Buffer` instances used
for pooling. This value may be modified.
Expand Down
2 changes: 1 addition & 1 deletion lib/buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const constants = ObjectDefineProperties({}, {
}
});

Buffer.poolSize = 8 * 1024;
Buffer.poolSize = 16 * 1024;
let poolSize, poolOffset, allocPool;

const encodingsMap = ObjectCreate(null);
Expand Down

0 comments on commit a932430

Please sign in to comment.