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

lib: speed up require(), phase 1

Replace calls to fs.statSync() with an internal variant that does not
create Error or Stat objects that put strain on the garbage collector.

A secondary benefit is that it improves start-up times in the debugger
because it no longer emits thousands of exception debug events.

PR-URL: https://github.com/nodejs/io.js/pull/1801


Reviewed-By: default avatarTrevor Norris <trev.norris@gmail.com>
parent 98649fd3
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