diff options
author | Brian White <mscdex@mscdex.net> | 2016-04-07 10:04:47 -0400 |
---|---|---|
committer | Brian White <mscdex@mscdex.net> | 2016-04-14 14:58:46 -0400 |
commit | ae18bbef48d87d9c641df85369f62cfd5ed8c250 (patch) | |
tree | 0caccd054677c9527d59f0b8934117ac17b0bb85 /test/message/vm_dont_display_runtime_error.out | |
parent | 1e4674ae0aec78f32c26a297ac11b45d46c24344 (diff) | |
download | android-node-v8-ae18bbef48d87d9c641df85369f62cfd5ed8c250.tar.gz android-node-v8-ae18bbef48d87d9c641df85369f62cfd5ed8c250.tar.bz2 android-node-v8-ae18bbef48d87d9c641df85369f62cfd5ed8c250.zip |
lib: improve module loading performance
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>
Diffstat (limited to 'test/message/vm_dont_display_runtime_error.out')
-rw-r--r-- | test/message/vm_dont_display_runtime_error.out | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/message/vm_dont_display_runtime_error.out b/test/message/vm_dont_display_runtime_error.out index ae8cf71142..76aa83393a 100644 --- a/test/message/vm_dont_display_runtime_error.out +++ b/test/message/vm_dont_display_runtime_error.out @@ -10,7 +10,7 @@ Error: boo! 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:*) - at node.js:* |