Skip to content

lib: make queueMicrotask faster

  1. async_hooks: improve AsyncResource performance Accessing properties behind a symbol is generally quite expensive and so is emitInit, only do both when actually required.

  2. lib: make queueMicrotask faster No longer create an additional scope within queueMicrotask in order to improve performance.

CI: https://ci.nodejs.org/job/node-test-pull-request/22078/ Benchmark CI: https://ci.nodejs.org/job/benchmark-node-micro-benchmarks/313/

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading