Skip to content

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

Open
Rosen369 wants to merge 4 commits into
statianzo:masterfrom
Rosen369:master
Open

RequestParser split cookie out of the body to speed up regex match time#210
Rosen369 wants to merge 4 commits into
statianzo:masterfrom
Rosen369:master

Conversation

@Rosen369

@Rosen369 Rosen369 commented Jan 9, 2018

Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Author

Good idea.I will see what I can do.

@Rosen369

Rosen369 commented Jan 23, 2018

Copy link
Copy Markdown
Author

How about this.Any suggestion? @statianzo

@manuc66

manuc66 commented Mar 2, 2020

Copy link
Copy Markdown

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