Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf fix for Duplex require replacement
I was noticing that RegExps called from Module._resolveLookupPaths were getting to be the hottest symbol in some profiles. readable-stream seems to be requiring Duplex from inside functions. It would be faster to not do a require on each invocation of Readable, ReadableState, Writable, WritableState.
- Loading branch information