Skip to content

Avoid exploring TyperState creations #3077

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 4 commits into from
Sep 25, 2017

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Sep 6, 2017

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.

@odersky
Copy link
Contributor Author

odersky commented Sep 6, 2017

test performance please

@dottybot
Copy link
Member

dottybot commented Sep 6, 2017

performance test scheduled: 1 job(s) in queue.

@dottybot
Copy link
Member

dottybot commented Sep 6, 2017

Performance test finished successfully:

Visit http://dotty-bench.epfl.ch/3077 to see the changes.

Benchmarks is based on merge(s) with master

@odersky
Copy link
Contributor Author

odersky commented Sep 6, 2017

test performance please

@dottybot
Copy link
Member

dottybot commented Sep 6, 2017

performance test scheduled: 1 job(s) in queue.

@dottybot
Copy link
Member

dottybot commented Sep 6, 2017

performance test failed:

[check /data/workspace/bench/logs/pull-3077-09-06-13.56.out for more information]

@odersky
Copy link
Contributor Author

odersky commented Sep 6, 2017

test performance please

@dottybot
Copy link
Member

dottybot commented Sep 6, 2017

performance test scheduled: 1 job(s) in queue.

@dottybot
Copy link
Member

dottybot commented Sep 6, 2017

performance test failed:

[check /data/workspace/bench/logs/pull-3077-09-06-14.02.out for more information]

@odersky
Copy link
Contributor Author

odersky commented Sep 6, 2017

test performance please

@dottybot
Copy link
Member

dottybot commented Sep 6, 2017

performance test scheduled: 1 job(s) in queue.

@dottybot
Copy link
Member

dottybot commented Sep 6, 2017

Performance test finished successfully:

Visit http://dotty-bench.epfl.ch/3077 to see the changes.

Benchmarks is based on merge(s) with master

@odersky
Copy link
Contributor Author

odersky commented Sep 6, 2017

test performance please

@dottybot
Copy link
Member

dottybot commented Sep 6, 2017

performance test scheduled: 1 job(s) in queue.

@dottybot
Copy link
Member

dottybot commented Sep 6, 2017

Performance test finished successfully:

Visit http://dotty-bench.epfl.ch/3077 to see the changes.

Benchmarks is based on merge(s) with master

@odersky
Copy link
Contributor Author

odersky commented Sep 6, 2017

test performance please

@dottybot
Copy link
Member

dottybot commented Sep 6, 2017

performance test scheduled: 1 job(s) in queue.

@dottybot
Copy link
Member

dottybot commented Sep 6, 2017

Performance test finished successfully:

Visit http://dotty-bench.epfl.ch/3077 to see the changes.

Benchmarks is based on merge(s) with master

@odersky
Copy link
Contributor Author

odersky commented Sep 7, 2017

test performance please

@dottybot
Copy link
Member

dottybot commented Sep 7, 2017

performance test scheduled: 1 job(s) in queue.

@odersky
Copy link
Contributor Author

odersky commented Sep 7, 2017

test performance please

@dottybot
Copy link
Member

dottybot commented Sep 7, 2017

performance test scheduled: 1 job(s) in queue.

@dottybot
Copy link
Member

dottybot commented Sep 7, 2017

Performance test finished successfully:

Visit http://dotty-bench.epfl.ch/3077 to see the changes.

Benchmarks is based on merge(s) with master

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.
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.
@odersky
Copy link
Contributor Author

odersky commented Sep 8, 2017

Despite inconclusive performance data I think this is a net win. It strongly reduces total allocations and the code ends up simpler than before.

Copy link
Contributor

@nicolasstucki nicolasstucki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

There is just the question of the TODO. Should we open an issue for it?

@allanrenucci allanrenucci merged commit 46a933a into scala:master Sep 25, 2017
@allanrenucci allanrenucci deleted the optimize-context-1 branch September 27, 2017 09:47
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.

4 participants