Skip to content

syntax: Fix complexity of string parsing. Closes #16624. #16659

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

Merged
merged 3 commits into from
Aug 22, 2014

Conversation

brson
Copy link
Contributor

@brson brson commented Aug 21, 2014

Note that this contains a 9.5MB test file, but it should compress thoroughly.

@brson
Copy link
Contributor Author

brson commented Aug 21, 2014

The problem here was that every char iteration was formatting an error message preemptively.

@alexcrichton
Copy link
Member

I think this also plagues binary literals, could a test be added for that as well?

@brson
Copy link
Contributor Author

brson commented Aug 21, 2014

Done. I also reduced the number of characters in each test from 1,000,000 to 400,000.

bors added a commit that referenced this pull request Aug 22, 2014
Note that this contains a 9.5MB test file, but it should compress thoroughly.
@bors bors closed this Aug 22, 2014
@bors bors merged commit f59cfd9 into rust-lang:master Aug 22, 2014
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