Skip to content

Make AproxState an opaque type #9591

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
Aug 19, 2020

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Aug 19, 2020

It was a value class before, and therefore suffered the boxing on comparison problem.
This might save a lot of allocations (but maybe the JIT would eliminate them anyway).
But anyway, it's better we dogfood Scala 3 features for this.

It was a value class before, and therefore suffered the boxing on comparison problem.
This might save a lot of allocations (but maybe the JIT would eliminate them anyway).
But anyway, it's better we dogfood Scala 3 features for this.
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 0ff1e2a into scala:master Aug 19, 2020
@odersky odersky deleted the optimize-ApproxState branch August 19, 2020 16:38
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