node/doc/api
Jason Ginchereau af70c3b478 n-api: optimize number API performance
- Add separate APIs for creating different kinds of numbers,
   because creating a V8 number value from an integer is faster
   than creating one from a double.
 - When getting number values, avoid getting the current context
   because the context will not actually be used and is expensive
   to obtain.
 - When creating values, don't use v8::TryCatch (NAPI_PREAMBLE),
   because these functions have no possibility of executing JS code.

Refs: https://github.com/nodejs/node/issues/14379
PR-URL: https://github.com/nodejs/node/pull/14573
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2017-08-07 17:31:17 -07:00
..
_toc.md http2: introducing HTTP/2 2017-08-04 12:55:44 -07:00
addons.md doc: move module-specific "globals" to modules.md 2017-06-30 18:41:56 +02:00
all.md doc: include http2.md in all.md 2017-08-04 12:56:14 -07:00
assert.md tools: replace assert-throw-arguments custom lint 2017-08-02 09:27:35 -07:00
async_hooks.md doc: fix link in async_hooks.md 2017-06-26 22:41:01 +03:00
buffer.md util: implement WHATWG Encoding Standard API 2017-07-24 14:04:13 -07:00
child_process.md doc: add entry for subprocess.killed property 2017-08-04 11:34:01 -07:00
cli.md http2: introducing HTTP/2 2017-08-04 12:55:44 -07:00
cluster.md 2017-07-19, Version 8.2.0 (Current) 2017-07-19 18:40:42 -04:00
console.md doc: erase unneeded eslint-plugin-markdown comment 2017-08-03 20:51:20 +03:00
crypto.md doc: fix verify in crypto.md 2017-07-27 10:31:41 -07:00
debugger.md doc: match debugger output & instructions to master behavior 2017-07-08 09:25:16 -07:00
deprecations.md repl: deprecate REPLServer.parseREPLKeyword 2017-08-02 14:39:06 -04:00
dgram.md dgram: add custom lookup function in sockets 2017-08-02 20:32:51 -04:00
dns.md dns: add channel.cancel() 2017-08-01 19:57:24 +02:00
documentation.md doc: update experimental status to reflect use 2017-07-24 09:55:13 -07:00
domain.md 2017-05-30, Version 8.0.0 (Current) 2017-05-30 10:58:31 -07:00
errors.md encoding: rudimentary TextDecoder support w/o ICU 2017-08-05 16:40:41 +08:00
events.md doc: make the style of notes consistent 2017-05-25 18:49:41 -04:00
fs.md doc: improve fs.read() doc text 2017-08-07 15:05:03 -07:00
globals.md doc: move module-specific "globals" to modules.md 2017-06-30 18:41:56 +02:00
http2.md http2: add some doc detail for invalid header chars 2017-08-04 12:57:39 -07:00
http.md doc: fix mistake in http.md 2017-07-09 18:47:35 +02:00
https.md https: make opts optional & immutable when create 2017-06-14 15:14:34 -04:00
index.md doc: git mv to .md 2016-04-20 16:34:27 -07:00
inspector.md doc: fix some broken references 2017-07-02 21:44:46 +02:00
intl.md encoding: rudimentary TextDecoder support w/o ICU 2017-08-05 16:40:41 +08:00
modules.md doc: add docs for module.paths 2017-07-25 11:30:15 -04:00
n-api.md n-api: optimize number API performance 2017-08-07 17:31:17 -07:00
net.md doc: fix minor typos in net.md 2017-07-30 13:07:59 +02:00
os.md tools: update: eslint-plugin-markdown@1.0.0-beta.7 2017-07-05 06:51:10 +03:00
path.md doc: fix mistake in path.relative 2017-06-28 14:25:37 +02:00
process.md doc: update umask for clarity 2017-07-14 14:05:59 -07:00
punycode.md doc: sort bottom-of-file markdown links 2017-05-08 09:30:55 -07:00
querystring.md tools: update: eslint-plugin-markdown@1.0.0-beta.7 2017-07-05 06:51:10 +03:00
readline.md readline: remove max limit of crlfDelay 2017-07-31 23:03:18 +02:00
repl.md repl: deprecate REPLServer.parseREPLKeyword 2017-08-02 14:39:06 -04:00
stream.md doc: fix typo in stream.md 2017-07-21 10:48:38 +08:00
string_decoder.md doc: use destructuring in code examples 2017-06-03 01:33:55 +03:00
synopsis.md cmd: support dash as stdin alias 2017-05-23 20:41:13 +02:00
timers.md timers: add promisify support 2017-05-09 15:01:44 +02:00
tls.md tls: add tlsSocket.disableRenegotiation() 2017-08-04 12:55:30 -07:00
tracing.md src: Node Tracing Controller 2016-12-20 12:31:09 -08:00
tty.md doc: note 'resize' event conditions on Windows 2017-07-09 17:59:11 -04:00
url.md doc, url: add changelog metadata for url.format 2017-08-01 11:46:19 +08:00
util.md encoding: rudimentary TextDecoder support w/o ICU 2017-08-05 16:40:41 +08:00
v8.md doc: fix some links 2017-07-23 22:10:59 +03:00
vm.md doc: fix minor issues reported in #9538 2017-06-14 00:18:59 +02:00
zlib.md doc: fix minor issues reported in #9538 2017-06-14 00:18:59 +02:00