substack/insert-module-globals — pull request #3 by shtylman (2013-02-26 16:45:14+00:00)
Title: Speed fixes

Until we can have "smart" global scope detection that is as fast as this, I think it is safer to err on the side of speed. The overhead for a false positive is not so massive that it matters.

I have also removed the need to do mdeps on the process module path. There are no dependencies and this removes all the strange resume stuff we added.

On another note. It may be interesting to have the AST shipped along with the source. This goes along with some of our discussions from yesterday about a simple `required(src, path, cb)` and detective that could work on an AST.