0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib
Rich Trott e6e6b07e51 buffer: remove MAX_SAFE_INTEGER check on length
MAX_SAFE_INTEGER is millions of times larger than the largest buffer
allowed in Node.js. There is no need to squash the length down to
MAX_SAFE_INTEGER. Removing that check results in a small but
statistically significant increase for Buffer.from() operating on
ArrayBuffers in some situations.

PR-URL: https://github.com/nodejs/node/pull/14131
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
2017-07-11 18:25:09 -07:00
..
internal assert: refactor to reduce unecessary code paths 2017-07-09 14:16:34 -04:00
_http_agent.js http: guard against failed sockets creation 2017-07-03 15:15:43 -04:00
_http_client.js benchmark,lib,test: use braces for multiline block 2017-06-23 14:43:20 -07:00
_http_common.js
_http_incoming.js http: suppress data event if req aborted 2017-05-31 10:39:17 +02:00
_http_outgoing.js benchmark,lib,test: use braces for multiline block 2017-06-23 14:43:20 -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 lib: use consistent indentation for ternaries 2017-07-07 06:57:16 -07: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: avoid possible slow path w UInt8Array 2017-06-30 19:17:54 +02:00
_tls_common.js lib: correct typo in createSecureContext 2017-06-13 09:05:43 -07:00
_tls_legacy.js lib: normalize indentation in parentheses 2017-07-10 11:55:35 -07:00
_tls_wrap.js lib: remove excess indentation 2017-07-07 13:18:19 -07:00
.eslintrc.yaml tools: eslint - use error and off 2017-07-05 16:41:19 -04:00
assert.js assert: refactor to reduce unecessary code paths 2017-07-09 14:16:34 -04:00
async_hooks.js lib: remove excess indentation 2017-07-07 13:18:19 -07:00
buffer.js buffer: remove MAX_SAFE_INTEGER check on length 2017-07-11 18:25:09 -07:00
child_process.js lib: remove excess indentation 2017-07-07 13:18:19 -07:00
cluster.js lib: use consistent indentation for ternaries 2017-07-07 06:57:16 -07:00
console.js console: use a plain object for the the error stack 2017-06-22 14:12:51 -04:00
constants.js
crypto.js lib: remove excess indentation 2017-07-07 13:18:19 -07:00
dgram.js dgram,process,util: refactor Error to TypeError 2017-06-28 20:00:36 +02:00
dns.js dns: make dns.setServers support customized port 2017-06-20 18:42:25 -04:00
domain.js
events.js lib: "iff" changed to "if and only if" 2017-06-06 14:38:28 -04:00
fs.js fs: two minor optimizations 2017-07-09 13:41:30 -04:00
http.js
https.js https: make opts optional & immutable when create 2017-06-14 15:14:34 -04:00
inspector.js lib: remove excess indentation 2017-07-07 13:18:19 -07:00
module.js inspector: --debug* deprecation and invalidation 2017-05-29 11:33:59 -04:00
net.js async-hooks,net: ensure asyncId=null if no handle 2017-07-05 15:51:08 +02:00
os.js
path.js path: fix incorrect use of ERR_INVALID_ARG_TYPE 2017-07-03 16:28:02 +02:00
process.js
punycode.js
querystring.js querystring: improve unescapeBuffer() performance 2017-05-26 18:39:14 +02:00
readline.js lib: normalize indentation in parentheses 2017-07-10 11:55:35 -07:00
repl.js repl: fix crash with large buffer tab completion 2017-07-07 13:03:44 +08: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 lib: remove excess indentation 2017-07-07 13:18:19 -07:00
tty.js lib: fix typos 2017-06-19 18:18:56 +02:00
url.js lib: remove excess indentation 2017-07-07 13:18:19 -07:00
util.js lib: remove excess indentation 2017-07-07 13:18:19 -07:00
v8.js v8: add new to the throw statement 2017-06-28 20:00:42 +02:00
vm.js
zlib.js zlib: improve performance 2017-06-13 11:48:59 -07:00