mirror of
https://github.com/nodejs/node.git
synced 2025-05-17 16:40:19 +00:00

This commit improves module loading performance by at least ~25-35% in the module-loader benchmarks. Some optimization strategies include: * Try-finally/try-catch isolation * Replacing regular expressions with manual parsing * Avoiding unnecessary string and array creation * Avoiding constant recompilation of anonymous functions and function definitions within functions PR-URL: https://github.com/nodejs/node/pull/5172 Reviewed-By: James M Snell <jasnell@gmail.com>
17 lines
472 B
Plaintext
17 lines
472 B
Plaintext
beginning
|
|
|
|
test.vm:1
|
|
throw new Error("boo!")
|
|
^
|
|
Error: boo!
|
|
at test.vm:1:7
|
|
at Object.exports.runInThisContext (vm.js:*)
|
|
at Object.<anonymous> (*test*message*vm_display_runtime_error.js:*)
|
|
at Module._compile (module.js:*)
|
|
at Object.Module._extensions..js (module.js:*)
|
|
at Module.load (module.js:*)
|
|
at tryModuleLoad (module.js:*:*)
|
|
at Function.Module._load (module.js:*)
|
|
at Function.Module.runMain (module.js:*)
|
|
at startup (node.js:*)
|