Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lazy cf property parsing #1023

Merged
merged 1 commit into from
Aug 23, 2023
Merged

lazy cf property parsing #1023

merged 1 commit into from
Aug 23, 2023

Conversation

mikea
Copy link
Collaborator

@mikea mikea commented Aug 16, 2023

Extracted all logic to handle the value to a separate class.

Most customers don't need this. Shaves off 6-10ns (10%) on hello world :)

lazy cf parsing:

iteration_duration.............: avg=76.65µs min=52.06µs med=65.46µs max=25.35ms p(90)=91.45µs p(95)=108.09µs

main:

iteration_duration.............: avg=87.73µs min=58.69µs med=74.47µs max=20.27ms p(90)=107.58µs p(95)=120.31µs

@mikea mikea force-pushed the maizatskyi/2023-08-15-lazy-cf-parsing branch 2 times, most recently from 47a296e to 9e8861c Compare August 16, 2023 17:17
@mikea
Copy link
Collaborator Author

mikea commented Aug 16, 2023

downstream PR 5982

src/workerd/api/http.h Outdated Show resolved Hide resolved
src/workerd/api/http.c++ Outdated Show resolved Hide resolved
@mikea mikea force-pushed the maizatskyi/2023-08-15-lazy-cf-parsing branch from f689c8e to cc0a450 Compare August 16, 2023 18:32
@mikea mikea requested a review from jasnell August 17, 2023 15:34
@mikea mikea force-pushed the maizatskyi/2023-08-15-lazy-cf-parsing branch from cc0a450 to 8e67e9a Compare August 23, 2023 15:43
@mikea mikea merged commit 1dcb10d into main Aug 23, 2023
7 checks passed
@mikea mikea deleted the maizatskyi/2023-08-15-lazy-cf-parsing branch August 23, 2023 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants