Files
node/lib
Anna Henningsen 83e5215a4e async_hooks: use typed array stack as fast path
- Communicate the current async stack length through a
  typed array field rather than a native binding method
- Add a new fixed-size `async_ids_fast_stack` typed array
  that contains the async ID stack up to a fixed limit.
  This increases performance noticeably, since most of the time
  the async ID stack will not be more than a handful of
  levels deep.
- Make the JS `pushAsyncIds()` and `popAsyncIds()` functions
  do the same thing as the native ones if the fast path
  is applicable.

Benchmarks:

    $ ./node benchmark/compare.js --new ./node --old ./node-master --runs 10 --filter next-tick process | Rscript benchmark/compare.R
    [00:03:25|% 100| 6/6 files | 20/20 runs | 1/1 configs]: Done
                                                   improvement confidence      p.value
     process/next-tick-breadth-args.js millions=4     19.72 %        *** 3.013913e-06
     process/next-tick-breadth.js millions=4          27.33 %        *** 5.847983e-11
     process/next-tick-depth-args.js millions=12      40.08 %        *** 1.237127e-13
     process/next-tick-depth.js millions=12           77.27 %        *** 1.413290e-11
     process/next-tick-exec-args.js millions=5        13.58 %        *** 1.245180e-07
     process/next-tick-exec.js millions=5             16.80 %        *** 2.961386e-07

PR-URL: https://github.com/nodejs/node/pull/17780
Reviewed-By: James M Snell <jasnell@gmail.com>
2017-12-27 19:48:07 +01:00
..
2017-12-21 03:01:02 -03:00
2017-12-13 09:33:27 -05:00
2017-12-24 14:09:29 +08:00
2017-12-27 12:47:45 -05:00
2017-08-28 00:39:42 +04:00
2017-11-29 14:16:43 -08:00
2017-12-24 02:16:44 +08:00
2016-10-04 12:17:32 -04:00
2017-03-10 11:23:48 -08:00
2017-12-01 20:44:52 +01:00
2017-11-14 17:31:26 -05:00
2017-12-21 03:45:26 -03:00
2017-12-13 06:23:23 +01:00