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
ISPN-12307 Improve media type parsing #8697
ISPN-12307 Improve media type parsing #8697
Conversation
So this PR makes it faster? |
Checkstyle failures |
There a large perf difference in the tables above, but which one is master and which is this PR? |
4eb20bd
to
3dbc8b6
Compare
* Use regular expressions for parsing to reduce allocations and to be closer to the spec * Do not remove quotes or backlashes from quoted parameter values * Add parsing benchmark
3dbc8b6
to
9c53615
Compare
@tristantarrant I fixed the checkstyle error @gustavonalle the first/slow table is master, I added the branch name in the table headings. |
Looks really nice @danberindei! |
run performance tests please |
No noticeable difference in the REST benchmark, probably Media Type parsing is not that important compared to other stuff that happens during a request. |
Merged, thanks @danberindei ! |
https://issues.redhat.com/browse/ISPN-12307
and to be closer to the spec