Skip to content

Conversation

@smarter
Copy link
Member

@smarter smarter commented May 17, 2018

No description provided.

@smarter
Copy link
Member Author

smarter commented May 17, 2018

test performance please

@dottybot
Copy link
Member

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

@dottybot
Copy link
Member

Performance test finished successfully:

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

Benchmarks is based on merging with master (f9f9f4a)

@OlivierBlanvillain
Copy link
Contributor

This does not seem to impact performance... What's the point of that DotClass? Should we merge anyway?

@smarter smarter force-pushed the opt/remove-DotClass branch from da99c31 to 090030a Compare August 24, 2018 10:39
@smarter smarter changed the title [wip, benchmarking] Remove DotClass Remove DotClass Aug 24, 2018
@smarter smarter force-pushed the opt/remove-DotClass branch 4 times, most recently from dd9a46f to 19df810 Compare August 24, 2018 12:44
Copy link
Contributor

@OlivierBlanvillain OlivierBlanvillain left a 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")
Copy link
Contributor

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.
@smarter smarter force-pushed the opt/remove-DotClass branch from 19df810 to ecb69ee Compare August 24, 2018 17:09
@smarter smarter merged commit 03b9887 into scala:master Aug 24, 2018
@Blaisorblade Blaisorblade deleted the opt/remove-DotClass branch August 24, 2018 20:13
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