node/lib
Benedikt Meurer 66a9f013ac events: optimize arrayClone by copying forward
Optimize arrayClone by copying forward.

It's slightly faster (and more readable) to copy array elements
in forward direction. This way it also avoids the ToBoolean and
the postfix count operation.

PR-URL: https://github.com/nodejs/node/pull/10571
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
2017-01-04 11:03:19 -06:00
..
internal url: set toStringTag for the URL class 2017-01-04 10:51:49 -06:00
.eslintrc tools: avoid let in for loops 2016-10-17 09:43:41 -07:00
_debug_agent.js debugger: use arrow function for lexical this 2016-08-18 16:44:38 -07:00
_debugger.js debugger: call this.resume() after this.run() 2016-12-06 13:40:59 -05:00
_http_agent.js http: name anonymous functions 2016-10-18 21:10:37 -07:00
_http_client.js http: remove stale timeout listeners 2016-12-13 10:57:57 -05:00
_http_common.js http: improve validation performance 2017-01-04 10:44:08 -06:00
_http_incoming.js http: reuse existing headers array for raw values 2017-01-04 10:44:08 -06:00
_http_outgoing.js http: optimize headers iteration 2017-01-04 10:44:09 -06:00
_http_server.js http: refactor server connection handling 2017-01-04 10:44:08 -06:00
_linklist.js lib: use emitWarning instead of printDeprecationMessage 2016-09-02 13:15:22 -07:00
_stream_duplex.js node: allow multiple arguments passed to nextTick 2015-04-15 17:02:21 -06:00
_stream_passthrough.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
_stream_readable.js tools: enforce linebreak after ternary operators 2017-01-04 10:44:04 -06:00
_stream_transform.js stream: improve stream error messages 2016-10-10 15:15:54 -07:00
_stream_wrap.js test,lib,benchmark: match function names 2016-10-20 09:32:45 -07:00
_stream_writable.js lib: avoid recompilation of anonymous functions 2017-01-04 10:44:08 -06:00
_tls_common.js tls: allow obvious key/passphrase combinations 2016-12-20 12:04:12 -05:00
_tls_legacy.js test,lib,benchmark: match function names 2016-10-20 09:32:45 -07:00
_tls_wrap.js tls: fix/annotate connect arg comments 2016-12-17 13:53:46 -05:00
assert.js assert: name anonymous functions 2016-10-20 09:31:53 -07:00
buffer.js buffer: improve allocation performance 2017-01-04 10:44:07 -06:00
child_process.js child_process: name anonymous functions 2016-12-06 13:40:58 -05:00
cluster.js cluster: return worker reference from disconnect() 2016-12-20 12:03:54 -05:00
console.js console: name anonymous functions 2016-10-17 09:44:52 -07:00
constants.js constants: errors -> errno 2016-12-05 03:33:34 +01:00
crypto.js crypto: return this in setAuthTag/setAAD 2016-11-22 06:38:01 +01:00
dgram.js dgram: use Buffer.alloc(0) for zero-size buffers 2016-10-10 08:13:50 -07:00
dns.js dns: implement {ttl: true} for dns.resolve4() 2016-11-22 11:15:05 -05:00
domain.js test,lib,benchmark: match function names 2016-10-20 09:32:45 -07:00
events.js events: optimize arrayClone by copying forward 2017-01-04 11:03:19 -06:00
fs.js fs: cache non-symlinks in realpathSync. 2017-01-04 10:44:06 -06:00
http.js http: name anonymous functions in http 2016-10-18 21:10:38 -07:00
https.js https: name anonymous functions in https 2016-12-05 03:22:13 +01:00
module.js fs: export realpathCacheKey from internal/fs 2016-11-22 06:35:55 +01:00
net.js net: name anonymous functions 2016-11-03 05:37:19 -05:00
os.js os: deprecate tmpDir() in favour of tmpdir() 2016-06-30 14:52:13 +02:00
path.js path: fallback to process cwd when resolving drive cwd 2016-09-29 11:14:49 -07:00
process.js src: remove excessive license boilerplate 2015-01-27 16:35:05 +11:00
punycode.js lib: remove let from for loops 2016-10-06 11:51:53 -07:00
querystring.js benchmark,test,lib: remove extra spaces 2016-05-11 23:18:16 -07:00
readline.js readline: use icu based string width calculation 2016-11-03 04:49:14 -05:00
repl.js repl: allow autocompletion for scoped packages 2017-01-04 10:44:04 -06:00
stream.js lib,src: remove usage of events.EventEmitter 2015-09-23 00:23:08 +05:30
string_decoder.js string_decoder: fix bad utf8 character handling 2016-06-23 23:18:10 -04:00
sys.js lib: use emitWarning instead of printDeprecationMessage 2016-09-02 13:15:22 -07:00
timers.js timers: fix handling of cleared immediates 2016-12-14 22:52:50 -05:00
tls.js lib: remove let from for loops 2016-10-06 11:51:53 -07:00
tty.js tty: set the handle to blocking mode 2016-08-10 23:41:28 +02:00
url.js url: move originFor, domainToAscii and domainToUnicode 2017-01-04 10:44:10 -06:00
util.js intl: Add more versions from ICU 2016-11-03 05:31:52 -05:00
v8.js src: extend HeapStatistics with new fields 2016-11-22 06:38:02 +01:00
vm.js vm: name anonymous functions 2016-11-07 15:58:12 -06:00
zlib.js zlib: fix linting recently-introduced lint error 2016-11-22 06:32:14 +01:00