Commit d52f5dc8 authored by Ben Noordhuis's avatar Ben Noordhuis
Browse files

src: speed up module loading, don't resize buffer

Don't bother shrinking the read buffer on the final read because we
dispose it immediately afterwards.  Avoids some unnecessary memory
allocation and copying.

PR-URL: https://github.com/nodejs/node/pull/9132


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
parent 35e88961
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment