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

Commits on Jul 31, 2022

  1. Improve request method parsing

    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 <[email protected]>
    bnoordhuis and lucacasonato committed Jul 31, 2022
    Configuration menu
    Copy the full SHA
    99ad8f5 View commit details
    Browse the repository at this point in the history
  2. Also improve POST

    lucacasonato committed Jul 31, 2022
    Configuration menu
    Copy the full SHA
    7ec9aca View commit details
    Browse the repository at this point in the history