node icon indicating copy to clipboard operation
node copied to clipboard

src: add new underlying async context tracking

Open jasnell opened this issue 1 year ago • 2 comments

Implements the core underlying bits of a refactored AsyncLocalStorage implementation based on the same mechanism that will be used for the standard AsyncContext API. The implementation is based on the new continuation preserved embedder data API in v8 and is designed to be significantly faster and more efficient that the current promise-hook based implementation.

This intentionally only adds the basic pieces, with the intent of spreading the refactored implementation across multiple PRs just to make things easier to review.

This is still a work in progress.

/cc @bmeck

jasnell avatar Apr 28 '24 23:04 jasnell

Review requested:

  • [ ] @nodejs/gyp

nodejs-github-bot avatar Apr 28 '24 23:04 nodejs-github-bot

Is this somewhat related to https://github.com/nodejs/node/pull/48528?

Flarna avatar Apr 29 '24 12:04 Flarna