Skip to content

Avoid recomputations of definitions #9620

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 25, 2020

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Aug 22, 2020

Ensure that everything in definitions is a lazy val.

We had 80k references to staticRefs since SubType was not cached.
That way they are cached for the whole run, and not recomputed for each
exhaustivity match.
@odersky
Copy link
Contributor Author

odersky commented Aug 22, 2020

test performance please

@dottybot
Copy link
Member

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

@dottybot
Copy link
Member

Performance test finished successfully:

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

Benchmarks is based on merging with master (0d36979)

Copy link
Contributor

@liufengyun liufengyun left a comment

Choose a reason for hiding this comment

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

LGTM

@odersky odersky merged commit c99913f into scala:master Aug 25, 2020
@odersky odersky deleted the cache-definitions branch August 25, 2020 10:21
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