Skip to content

Added benchmarks for parsing method#464

Merged
seanmonstar merged 1 commit intohyperium:masterfrom
a1ien:benche_method
Jan 25, 2021
Merged

Added benchmarks for parsing method#464
seanmonstar merged 1 commit intohyperium:masterfrom
a1ien:benche_method

Conversation

@a1ien
Copy link
Contributor

@a1ien a1ien commented Jan 22, 2021

I tried to optimize parsing 'Method' and failed ;). But at least there will be a benchmark


#[bench]
fn method_easy(b: &mut Bencher) {
let name = b"Get";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be GET? With lowercase, it will parse as a "custom".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yehh GET :)
Fix

@seanmonstar seanmonstar merged commit 5b90e38 into hyperium:master Jan 25, 2021
BenxiangGe pushed a commit to BenxiangGe/http that referenced this pull request Jul 26, 2021
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.

2 participants