-
-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve request method parsing (#119)
Special-case parsing of the GET and POST 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]> Co-authored-by: Ben Noordhuis <[email protected]>
- Loading branch information
1 parent
aa6108b
commit 5f8a7b4
Showing
2 changed files
with
42 additions
and
3 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
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