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

Decode chunk as ascii for the regex instead of the default utf8 #13

Merged
merged 1 commit into from Dec 7, 2015
Merged

Decode chunk as ascii for the regex instead of the default utf8 #13

merged 1 commit into from Dec 7, 2015

Conversation

Nibbler999
Copy link
Contributor

I did some profiling on the code and the most expensive part is converting the chunk to utf8 for the regex. Converting it to ascii is much faster. We know the headers are ascii so it seems like a safe optimisation.

@mmaelzer
Copy link
Owner

mmaelzer commented Dec 7, 2015

Awesome. Great PR.

mmaelzer added a commit that referenced this pull request Dec 7, 2015
Decode chunk as ascii for the regex instead of the default utf8
@mmaelzer mmaelzer merged commit 4ec6ee2 into mmaelzer:master Dec 7, 2015
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.

None yet

2 participants