Skip to content
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

RequestParser split cookie out of the body to speed up regex match time #210

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Rosen369
Copy link

@Rosen369 Rosen369 commented Jan 9, 2018

I have added the unit test in RequestParserTests.cs to test the run time of request with large headers.
Problem reference to #209

@Rosen369
Copy link
Author

I managed out a simple way to split the cookie out of the header.

@Rosen369 Rosen369 changed the title Added test run time of request with large headers RequestParser split cookie out of the body to speed up regex match time Jan 11, 2018
@statianzo
Copy link
Owner

Nice work. Since the code is walking the whole string, all headers could be parsed in the same way. It would be more generic and give the same performance benefit to any large header, not just Cookie.

@Rosen369
Copy link
Author

Good idea.I will see what I can do.

@Rosen369
Copy link
Author

Rosen369 commented Jan 23, 2018

How about this.Any suggestion? @statianzo

@manuc66
Copy link

manuc66 commented Mar 2, 2020

Hi,

Any plan for merging this ? @statianzo

Thanks

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.

3 participants