0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib
Brian White e32425bfcd
module: avoid JSON.stringify() for cache key
By avoiding JSON.stringify() and simply joining the strings with a
delimiter that does not appear in paths, we can improve cached
require() performance by at least 50%.

Additionally, this commit removes the last source of permanent
function deoptimization (const) for _findPath().

PR-URL: https://github.com/nodejs/node/pull/10789
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
2017-03-10 23:48:53 -05:00
..
internal lib: improve method of function calling 2017-03-10 23:48:46 -05:00
_debug_agent.js lib: deprecate node --debug at runtime 2017-02-10 12:41:09 -08:00
_debugger.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
_http_agent.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
_http_client.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
_http_common.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
_http_incoming.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
_http_outgoing.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
_http_server.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
_linklist.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
_stream_duplex.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
_stream_passthrough.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
_stream_readable.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
_stream_transform.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
_stream_wrap.js test,lib,benchmark: match function names 2016-10-19 22:20:27 -07:00
_stream_writable.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
_tls_common.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
_tls_legacy.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
_tls_wrap.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
.eslintrc.yaml tools: rename eslintrc to an undeprecated format 2017-01-18 09:48:52 +05:30
assert.js assert: fix premature deep strict comparison 2017-02-27 18:39:40 +08:00
buffer.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
child_process.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
cluster.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
console.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
constants.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
crypto.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
dgram.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
dns.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
domain.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
events.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
fs.js lib: remove sources of permanent deopts 2017-03-10 23:48:35 -05:00
http.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
https.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
module.js module: avoid JSON.stringify() for cache key 2017-03-10 23:48:53 -05:00
net.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
os.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
path.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
process.js
punycode.js lib: remove let from for loops 2016-10-04 12:17:32 -04:00
querystring.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
readline.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
repl.js lib: improve method of function calling 2017-03-10 23:48:46 -05:00
stream.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
string_decoder.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
sys.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
timers.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
tls.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
tty.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
url.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
util.js util: throw toJSON errors when formatting %j 2017-03-10 18:22:57 -08:00
v8.js v8: add cachedDataVersionTag 2017-03-05 14:23:02 +01:00
vm.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
zlib.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00