Commit 35e88961 authored by Ben Noordhuis's avatar Ben Noordhuis
Browse files

src: speed up module loading, skip EOF read

Stop reading from disk when we read fewer bytes than requested because
the next read will be the zero-sized EOF.

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


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
parent d3b1a2b4
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