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

Remove unnecessary allocations #7004

Merged
merged 8 commits into from
Jun 8, 2013
Merged

Remove unnecessary allocations #7004

merged 8 commits into from
Jun 8, 2013

Conversation

dotdash
Copy link
Contributor

@dotdash dotdash commented Jun 8, 2013

This removes some unnecessary allocations in the lexer, the typechecker and the metadata decoder. Reduces the time spent in the parsing and typechecking passes by about 10% for me.

@catamorphism
Copy link
Contributor

can you make the first commit (43cae88) a separate pull request since it doesn't seem to be about reducing allocations? Thanks!

@dotdash
Copy link
Contributor Author

dotdash commented Jun 8, 2013

Opened as #7005. The changes in de1df36 will cause errors without that fix, so this PR will have to wait.

@dotdash
Copy link
Contributor Author

dotdash commented Jun 8, 2013

Is this fine as it is, now that #7005 is merged, or do I need to do something so that 43cae88 disappears here?

bors added a commit that referenced this pull request Jun 8, 2013
This removes some unnecessary allocations in the lexer, the typechecker and the metadata decoder. Reduces the time spent in the parsing and typechecking passes by about 10% for me.
@bors bors closed this Jun 8, 2013
@bors bors merged commit 2096d79 into rust-lang:incoming Jun 8, 2013
@dotdash dotdash deleted the allocs branch June 9, 2013 09:32
flip1995 pushed a commit to flip1995/rust that referenced this pull request Apr 8, 2021
…teffen

Fix `manual_map` at the end of an if chain

changelog: Fix `manual_map` suggestion at the end of an if chain
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.

5 participants