Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
remove passthrough and lazily load headers
Replaced passthrough stream with just using ReadableStream instead and caching the controller instead of a WritableStream from a passthrough. Also lazily construct the Headers instances on Request only when needed. Together this results in about a 25% boost in requests per second and a 45% reduction in latency for our hello-world benchmark.
- Loading branch information
1 parent
c019e22
commit 7788a98
Showing
1 changed file
with
35 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters