Skip to content

Avoid exploring TyperState creations #3186

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
Sep 27, 2017

Conversation

allanrenucci
Copy link
Contributor

Rebased #3077

@allanrenucci
Copy link
Contributor Author

@odersky I reopened #3077, after I had to revert it. You might want to take over

@odersky
Copy link
Contributor

odersky commented Sep 27, 2017

I don't understand. When I pull this branch and rebase to master I get master again. So everything is already merged to master, no?

Dotty bootstrap (from dotc directory) has 5924910 context creations.
This commit brings that number down to 4307795. It also reduces the
number of TyperStates created from 2'059'126 to 308'732.

Simplify TyperState

Have just one class instead of two. This will be important for inlining
the `test` method. Also, fix test method - it needs to create a new StoreReporter.

Fix ()'s in new/exploreTyperState

More () fixes
@allanrenucci
Copy link
Contributor Author

I am merging this, it has already been reviewed

@allanrenucci allanrenucci merged commit 60d14c3 into scala:master Sep 27, 2017
@allanrenucci allanrenucci deleted the optimize-context branch December 14, 2017 19:24
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