-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Remove DotClass #4545
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
Remove DotClass #4545
Conversation
|
test performance please |
|
performance test scheduled: 1 job(s) in queue, 0 running. |
|
Performance test finished successfully: Visit http://dotty-bench.epfl.ch/4545/ to see the changes. Benchmarks is based on merging with master (f9f9f4a) |
|
This does not seem to impact performance... What's the point of that DotClass? Should we merge anyway? |
da99c31 to
090030a
Compare
dd9a46f to
19df810
Compare
OlivierBlanvillain
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
|
|
||
| /** Throws an `UnsupportedOperationException` with the given method name. */ | ||
| def unsupported(methodName: String): Nothing = | ||
| throw new UnsupportedOperationException(s"$getClass.$methodName") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess getClass doesn't make much sense anymore
It's not actually useful for anything and could potentially be detrimental to performance as the JVM will switch from a constant-time to a linear-time lookup for "instanceof" when the class hierarchy is too tall.
19df810 to
ecb69ee
Compare
No description provided.