0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 23:43:09 +01:00
nodejs/lib
Ruben Bridgewater 95bbb68175
util: improve util.inspect performance
* improve util.inspect performance
  This is a huge performance improvement in case of sparse arrays
  when using util.inspect as the hole will simple be skipped.

* use faster visibleKeys property lookup

* add inspect-array benchmark

PR-URL: https://github.com/nodejs/node/pull/14492
Fixes: https://github.com/nodejs/node/issues/14487
Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
2017-08-13 13:52:33 -04:00
..
internal child_process: defer error to next tick 2017-08-13 10:23:50 -07:00
_http_agent.js http: check for handle before running asyncReset() 2017-07-24 20:42:24 -04:00
_http_client.js http_client, errors: migrate to internal/errors 2017-08-01 14:08:12 +02:00
_http_common.js lib: implement async_hooks API in core 2017-05-10 22:22:29 +02:00
_http_incoming.js http: suppress data event if req aborted 2017-05-31 10:39:17 +02:00
_http_outgoing.js http2: introducing HTTP/2 2017-08-04 12:55:44 -07:00
_http_server.js lib: fix off-by-one indentation 2017-07-04 06:49:05 -07:00
_stream_duplex.js stream: add destroy and _destroy methods. 2017-05-22 08:34:14 +02:00
_stream_passthrough.js
_stream_readable.js stream: support readable/writableHWM for Duplex 2017-08-08 11:18:25 +02:00
_stream_transform.js stream: use more explicit statements 2017-06-29 18:03:54 +02:00
_stream_wrap.js stream: use more explicit statements 2017-06-29 18:03:54 +02:00
_stream_writable.js stream: support readable/writableHWM for Duplex 2017-08-08 11:18:25 +02:00
_tls_common.js tls: fix empty issuer/subject/infoAccess parsing 2017-07-27 17:36:50 +02:00
_tls_legacy.js doc, lib, test: do not re-require needlessly 2017-07-21 20:40:52 +03:00
_tls_wrap.js tls: add tlsSocket.disableRenegotiation() 2017-08-04 12:55:30 -07:00
.eslintrc.yaml tools: remove legacy indentation linting 2017-07-30 09:21:52 -07:00
assert.js assert: fix deepEqual inconsistencies 2017-08-01 13:26:07 +02:00
async_hooks.js async_hooks: remove deprecated APIs 2017-07-27 20:02:01 +02:00
buffer.js buffer: refactor module.exports, imports 2017-07-24 07:24:53 -07:00
child_process.js lib: modify destructuring for indentation 2017-07-25 12:21:26 -07:00
cluster.js lib: use consistent indentation for ternaries 2017-07-07 06:57:16 -07:00
console.js console: coerce label to string in console.time() 2017-08-07 22:22:59 -07:00
constants.js
crypto.js lib: remove excess indentation 2017-07-07 13:18:19 -07:00
dgram.js dgram: add custom lookup function in sockets 2017-08-02 20:32:51 -04:00
dns.js dns: name generated functions 2017-08-01 19:57:24 +02:00
domain.js
events.js lib: update indentation of ternaries 2017-07-17 22:09:46 -07:00
fs.js fs: invoke callbacks with undefined context 2017-08-10 09:11:38 -07:00
http2.js http2: introducing HTTP/2 2017-08-04 12:55:44 -07:00
http.js http: use more efficient module.exports pattern 2017-03-20 16:01:31 -07:00
https.js https: make opts optional & immutable when create 2017-06-14 15:14:34 -04:00
inspector.js lib,src: fix consistent spacing inside braces 2017-07-21 15:13:47 -04:00
module.js lib: include cached modules in module.children 2017-07-24 16:56:31 +02:00
net.js net: use rest parameters instead of arguments 2017-08-10 14:09:18 +02:00
os.js os: refactor os structure, add Symbol.toPrimitive 2017-05-01 11:44:56 -07:00
path.js path: fix win32 volume-relative paths 2017-07-30 19:24:23 +08:00
process.js
punycode.js
querystring.js querystring: avoid indexOf when parsing 2017-08-09 14:03:48 -04:00
readline.js lib: use Timer.now() in readline module 2017-08-09 22:59:25 -07:00
repl.js repl: include folder extensions in autocomplete 2017-08-13 01:03:30 -07:00
stream.js stream: support Uint8Array input to methods 2017-05-27 11:19:39 +02:00
string_decoder.js
sys.js
timers.js lib: remove excess indentation 2017-07-07 13:18:19 -07:00
tls.js tls: migrate tls.js to use internal/errors.js 2017-07-18 14:03:23 -04:00
tty.js lib: fix typos 2017-06-19 18:18:56 +02:00
url.js lib: update indentation of ternaries 2017-07-17 22:09:46 -07:00
util.js util: improve util.inspect performance 2017-08-13 13:52:33 -04:00
v8.js v8: add new to the throw statement 2017-06-28 20:00:42 +02:00
vm.js
zlib.js zlib: fix interaction of flushing and needDrain 2017-07-31 22:44:05 +02:00