Skip to content

Denotation#matches: avoid now-unnecessary slow path #9148

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
Jun 9, 2020

Conversation

smarter
Copy link
Member

@smarter smarter commented Jun 9, 2020

The slow path when matching on a PolyType was necessary when it was
added in 668a637, but since then
signatures were enhanced to also include the number of type parameters
(in f951534), thus making the extra
check unnecessary.

The slow path when matching on a PolyType was necessary when it was
added in 668a637, but since then
signatures were enhanced to also include the number of type parameters
(in f951534), thus making the extra
check unnecessary.
@smarter smarter changed the title Denotations#matches: avoid now-unnecessary slow path Denotation#matches: avoid now-unnecessary slow path Jun 9, 2020
@smarter smarter force-pushed the remove-match-slowpath branch from b9745b1 to 13ea0c0 Compare June 9, 2020 18:57
@smarter smarter requested a review from odersky June 9, 2020 19:59
Copy link
Contributor

@odersky odersky left a comment

Choose a reason for hiding this comment

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

Nice simplification

@odersky odersky merged commit a3b417b into scala:master Jun 9, 2020
@odersky odersky deleted the remove-match-slowpath branch June 9, 2020 20:01
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.

2 participants