diff options
author | Laurence Rowe <l@lrowe.co.uk> | 2023-11-13 09:32:34 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-13 10:32:34 -0700 |
commit | 25950baed347fa2311ecd59ae569a5d3ab4851f5 (patch) | |
tree | 2a6091e6519b74e62a36438dabcf3444ebb37090 /ext/http/00_serve.js | |
parent | 6e1f3aa0131f145db631d5dfb94c2b9404172194 (diff) |
perf(ext/http): Object pooling for HttpRecord and HeaderMap (#20809)
Reuse existing existing allocations for HttpRecord and response
HeaderMap where possible.
At request end used allocations are returned to the pool and the pool
and the pool sized to 1/8th the current number of inflight requests.
For http1 hyper will reuse the response HeaderMap for the following
request on the connection.
Builds upon https://github.com/denoland/deno/pull/20770
---------
Co-authored-by: Matt Mastracci <matthew@mastracci.com>
Diffstat (limited to 'ext/http/00_serve.js')
0 files changed, 0 insertions, 0 deletions