Skip to content

net,dns:move hasObserver out of perf function

move the hasObserver out of startPerf and stopPerf to avoid generating useless objects when these are no observer.

See https://github.com/nodejs/node/pull/43002

  • 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

Affected subsystem: net,dns

Merge request reports

Loading