deno
351d8fbf - perf(ext/node): gate node:http async resource entry (#34608)

Commit
105 days ago
perf(ext/node): gate node:http async resource entry (#34608) ## Summary - Skips the per-request async-resource enter path in node:http request handling when no async hooks are active and no async context mapping is present. - Still restores the request-entry async context snapshot on exit, so `AsyncLocalStorage.enterWith()` inside a gated request cannot leak into later request handlers. - Preserves the existing async hooks and AsyncLocalStorage behavior by falling back to the original request-resource path whenever those observability mechanisms are active. - Adds focused coverage for async context propagation, `enterWith()` isolation in the gated path, and async resource observability through node:http requests. --------- Co-authored-by: Nathan Whitaker <nathan@deno.com>
Author
Parents
Loading