diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2018-11-05 04:52:50 +0800 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2018-11-07 20:40:38 -0800 |
commit | f895b5a58ec930d3ca49ebf34959a598c7669d77 (patch) | |
tree | 3ce1f6bcb6247fa6ecad1479c0d01e56d2f1074d /node.gyp | |
parent | 350bef6a103593f824e6a43ff52a86f1a48267db (diff) | |
download | node-new-f895b5a58ec930d3ca49ebf34959a598c7669d77.tar.gz |
src: cache the result of GetOptions() in JS land
Instead of calling into C++ each time we need to check the value
of a command line option, cache the option map in a new
`internal/options` module for faster access to the values in JS land.
PR-URL: https://github.com/nodejs/node/pull/24091
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Diffstat (limited to 'node.gyp')
-rw-r--r-- | node.gyp | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -133,6 +133,7 @@ 'lib/internal/modules/esm/translators.js', 'lib/internal/safe_globals.js', 'lib/internal/net.js', + 'lib/internal/options.js', 'lib/internal/print_help.js', 'lib/internal/priority_queue.js', 'lib/internal/process/esm_loader.js', |