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

lib: optimize require() path walking

Remove a speed bump from commit 36777d2a by reusing the result of the
previous stat() system call.  It's a code path that gets called many
thousands of times at startup in most applications so shaving off an
extra system call can have an appreciable impact on startup times.

PR-URL: https://github.com/iojs/io.js/pull/130


Reviewed-by: default avatarChris Dickinson <christopher.s.dickinson@gmail.com>
parent 535fec83
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