-
Notifications
You must be signed in to change notification settings - Fork 304
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
Investigate http_parser upgrade or replacement #196
Comments
I integrated
(numbers in requests/second as reported by Just running the same test several times on the same parser is enough to get results that change by more than the amount listed here. I don't know how to make it more stable, if it's just due to the few other processes running on my laptop or if there is a more fundamental reason for it. I don't know how much variance should be expected is what I'm trying to say. For example, here are 3 runs of just
(average: 97,994.36)
(average: 97,232.84) I didn't find I found a few places in Webdis where request processing seems sub-optimal, so I will try to look at those instead. |
I noticed that http_parser is no longer maintained and users are advised to migrate to llhttp. The README there mentions significant performance improvements compared to
http_parser
, and this might be worth looking into.Simply upgrading
http_parser
to the latest version is not as simple as dropping in the new.c
and.h
files: theon_query_string
callback no longer exists so both endpoint and query string parameters are now passed in using a single callback. It looks like there might be a parser available inhttp_parser
, there's a mention of it in the old README.@jessie-murray if you're interested in giving it a try, this might be a good upgrade.
The text was updated successfully, but these errors were encountered: