Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
async_hooks: improve AsyncResource performance
Accessing symbols is generally quite expensive and so is emitInit, only do both when actually required. PR-URL: #27032 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com>
- Loading branch information
Showing
with
15 additions
and 15 deletions.
- +14 −11 lib/async_hooks.js
- +1 −4 lib/internal/async_hooks.js
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters