http: fixup perf regression
Only call into hrtime if there's an observer Also, fix up some previously missed changes from the original refactor Signed-off-by:James M Snell <jasnell@gmail.com> Refs: https://github.com/nodejs/node/issues/37937 Refs: https://github.com/nodejs/node/pull/37136 PR-URL: https://github.com/nodejs/node/pull/38110 Reviewed-By:
Matteo Collina <matteo.collina@gmail.com> Reviewed-By:
Luigi Pinca <luigipinca@gmail.com> Reviewed-By:
Richard Lau <rlau@redhat.com> Reviewed-By:
Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By:
Benjamin Gruenbaum <benjamingr@gmail.com>
parent
d2f116c6
Please register or sign in to comment