Skip to content

Optimization: don't run override checks between Java definitions #11432

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 1 commit into from
Feb 16, 2021

Conversation

smarter
Copy link
Member

@smarter smarter commented Feb 16, 2021

Optimization: don't run override checks between Java definitions

This is the same optimization I implemented in Scala 2 a while ago:
scala/scala@ba53545

We never run RefChecks on a Java class, but we can run it on a Scala
class which inherits from a Java class B which itself inherits from
another Java class A. In that case we don't need to check that members
of B correctly override members of A.

@smarter
Copy link
Member Author

smarter commented Feb 16, 2021

test performance please

@dottybot
Copy link
Member

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

@dottybot
Copy link
Member

Performance test finished successfully:

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

Benchmarks is based on merging with master (e79ca04)

@smarter smarter force-pushed the opt-java-override-checks branch from 13e272e to 6d43c88 Compare February 16, 2021 16:54
This is the same optimization I implemented in Scala 2 a while ago:
scala/scala@ba53545

We never run RefChecks on a Java class, but we can run it on a Scala
class which inherits from a Java class B which itself inherits from
another Java class A. In that case we don't need to check that members
of B correctly override members of A.
@odersky odersky merged commit 41605e0 into scala:master Feb 16, 2021
@odersky odersky deleted the opt-java-override-checks branch February 16, 2021 19:15
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