Unverified Commit 40ace473 authored by James M Snell's avatar James M Snell
Browse files

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: default avatarJames 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: default avatarMatteo Collina <matteo.collina@gmail.com>
Reviewed-By: default avatarLuigi Pinca <luigipinca@gmail.com>
Reviewed-By: default avatarRichard Lau <rlau@redhat.com>
Reviewed-By: default avatarRuben Bridgewater <ruben@bridgewater.de>
Reviewed-By: default avatarBenjamin Gruenbaum <benjamingr@gmail.com>
parent d2f116c6
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment