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

Improve request method parsing #119

Merged
merged 2 commits into from
Aug 2, 2022
Merged

Conversation

lucacasonato
Copy link
Contributor

Special-case parsing of the GET request method as that is by far the
most common. Speeds up the req_short benchmark by a fair margin:

   req_short/req_short     time:   [32.601 ns 32.737 ns 32.914 ns]
                        thrpt:  [1.9241 GiB/s 1.9345 GiB/s 1.9425 GiB/s]
                 change:
                        time:   [-4.1113% -3.5415% -3.0150%] (p = 0.00 < 0.05)
                        thrpt:  [+3.1087% +3.6715% +4.2876%]
                        Performance has improved.

Co-authored-by: Luca Casonato hello@lcas.dev

bnoordhuis and others added 2 commits July 31, 2022 22:51
Special-case parsing of the GET request method as that is by far the
most common. Speeds up the req_short benchmark by a fair margin:

       req_short/req_short     time:   [32.601 ns 32.737 ns 32.914 ns]
                            thrpt:  [1.9241 GiB/s 1.9345 GiB/s 1.9425 GiB/s]
                     change:
                            time:   [-4.1113% -3.5415% -3.0150%] (p = 0.00 < 0.05)
                            thrpt:  [+3.1087% +3.6715% +4.2876%]
                            Performance has improved.

Co-authored-by: Luca Casonato <hello@lcas.dev>
@seanmonstar
Copy link
Owner

Thanks! Should I assume this supercedes #118?

@lucacasonato
Copy link
Contributor Author

Something like that yeah 😁

@seanmonstar seanmonstar merged commit 5f8a7b4 into seanmonstar:master Aug 2, 2022
@lucacasonato lucacasonato deleted the brr2 branch August 2, 2022 00:46
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.

None yet

3 participants