diff options
author | Matt Mastracci <matthew@mastracci.com> | 2023-05-30 18:02:52 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-30 18:02:52 -0600 |
commit | 489d2e81c3e53ed689f51dc9d76c007d487aa101 (patch) | |
tree | 529a0221076772b74bac4acb54918b1b79bceb75 /runtime/examples/hello_runtime_bootstrap.js | |
parent | 047edf6a75133decf069e6118634caa76a455d7c (diff) |
perf(ext/http): Add a sync phase to http serving (#19321)
Under heavy load, we often have requests queued up that don't need an
async call to retrieve. We can use a fast path sync op to drain this set
of ready requests, and then fall back to the async op once we run out of
work.
This is a .5-1% bump in req/s on an M2 mac. About 90% of the handlers go
through this sync phase (based on a simple instrumentation that is not
included in this PR) and skip the async machinery entirely.
Diffstat (limited to 'runtime/examples/hello_runtime_bootstrap.js')
0 files changed, 0 insertions, 0 deletions