Skip to content

bn: improve allocation speed for buffers. avoid deprecation warning.#167

Closed
chjj wants to merge 1 commit intoindutny:masterfrom
chjj:master
Closed

bn: improve allocation speed for buffers. avoid deprecation warning.#167
chjj wants to merge 1 commit intoindutny:masterfrom
chjj:master

Conversation

@chjj
Copy link
Contributor

@chjj chjj commented Jun 24, 2017

Node.js 8 calls out to Buffer.alloc when invoking new Buffer(). This ensures Buffer.allocUnsafe is called for some extra speed.

@indutny
Copy link
Owner

indutny commented Nov 29, 2017

Landed in 9f7d21f, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants