-
Notifications
You must be signed in to change notification settings - Fork 212
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
replace HTTP::Body with HTTP::Entity::Parser and optimize query_parameters #538
Conversation
…related HTTP-Entity-Parser/issues/3
@kazeburo uri.t is failing. I reproduce it locally as well. |
@kazeburo the test is failing when you don't have XS of WWW::Form::UrlEncoded. |
@miyagawa I found bug in WWW::Form::UrlEncoded::PP. I'm fixing it now. Hash::MultiValue |
Right, but don't we cache H::MV result anyway? Is this to optimize |
H::MV flatten benchmark. about 3 times faster without twice flatten.
script
|
Right, then why do we do it? :) |
The faster is good if there is no risk or complicated code. |
replace HTTP::Body with HTTP::Entity::Parser and optimize query_parameters
I changed the default buffer length in 06bd1f6 |
related to #537 and #434
This PR replace HTTP::Body with HTTP::Entity::Parser and WWW::Form::UrlEncoded(::XS). HTTP::Entity::Parser was created based on tokuhirom's code of #434.
And also this PR remove
Hash::MultiValue->flatten
inparameters
for reducing cost.Here is small benchmark this pr and master.
use HTTP::Entity::Parser and WWW::Form::UrlEncoded::XS
master(0fbe073)