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 #118

Closed
wants to merge 1 commit into from

Conversation

bnoordhuis
Copy link
Contributor

@bnoordhuis bnoordhuis commented Jul 31, 2022

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:   [54.341 ns 54.372 ns 54.410 ns]
                        thrpt:  [1.1639 GiB/s 1.1647 GiB/s 1.1654 GiB/s]
                 change:
                        time:   [-6.9861% -6.8834% -6.7832%] (p = 0.00 < 0.05)
                        thrpt:  [+7.2768% +7.3922% +7.5108%]

edit: forgot to copy the Performance has improved. line :derp:

src/lib.rs Outdated Show resolved Hide resolved
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:   [54.341 ns 54.372 ns 54.410 ns]
                            thrpt:  [1.1639 GiB/s 1.1647 GiB/s 1.1654 GiB/s]
                     change:
                            time:   [-6.9861% -6.8834% -6.7832%] (p = 0.00 < 0.05)
                            thrpt:  [+7.2768% +7.3922% +7.5108%]
@seanmonstar
Copy link
Owner

Superseded by #119

@seanmonstar seanmonstar closed this Aug 2, 2022
@bnoordhuis bnoordhuis deleted the brr branch August 2, 2022 11:12
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