module: cache regular expressions
module: cache regular expressions

None of these regular expressions will change, so there is no need to
generate them every time in hot code paths.

Provides a small performance improvement in module loading. (5-10%)

PR-URL: https://github.com/nodejs/node/pull/3869
Reviewed-By: Colin Ihrig <838f779c91673db29b8572ea3f54d191d3878ae2@gmail.com>
Reviewed-By: James M Snell <2d64a127ffc94dbe6295928a16bedf8b26814159@gmail.com>

dreamllq/node,dreamllq/node,dreamllq/node,dreamllq/node,dreamllq/node,dreamllq/node,dreamllq/node,dreamllq/node,dreamllq/node