diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-06-13 21:13:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-13 21:13:34 +0200 |
commit | 7e81d3c876bccd208a2e7b9c33f6fad4e3cf1b0f (patch) | |
tree | 9786f21f9f53c434bbe06bee2e6947b068d65c85 /runtime/web_worker.rs | |
parent | 133f9a952bc317347fa6581a6a47e59287f5b960 (diff) |
perf(http): cache verified headers (#19465)
Use `Map` to cache validated HTTP headers. Cache
has a capacity of 4096 elements and it's cleared
once that capacity is reached.
In `preactssr` benchmark it lowers the time spent
when adding headers from 180ms to 2.5ms.
Diffstat (limited to 'runtime/web_worker.rs')
0 files changed, 0 insertions, 0 deletions