Skip to content

PostTyper#normalizeTypeArgs: fast path to avoid allocations #3948

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 2 commits into from
Jan 30, 2018

Conversation

smarter
Copy link
Member

@smarter smarter commented Jan 30, 2018

According to -Yprofile-enabled, this reduces the amount of memory
allocated in PostTyper when compiling re2s from 39 MB to 26 MB

@smarter smarter requested a review from odersky January 30, 2018 15:16
According to -Yprofile-enabled, this reduces the amount of memory
allocated in PostTyper when compiling re2s from 39 MB to 26 MB
@smarter smarter force-pushed the opt/posttyper-fastpath branch from 35a4344 to 5ccec02 Compare January 30, 2018 15:19
@smarter
Copy link
Member Author

smarter commented Jan 30, 2018

@nicolasstucki I had to disable tests/run-with-compiler/quote-run-constants-extract.scala because it times out.

@odersky
Copy link
Contributor

odersky commented Jan 30, 2018

I believe some of the quote tests are too aggressive, causing stackoverflows or timeouts in normal situations. We should make them less resource hungry.

@smarter smarter merged commit e4c376e into scala:master Jan 30, 2018
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.

2 participants