Skip to content
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

Optimise SpaceEngine.signature #21791

Merged
merged 6 commits into from
Oct 30, 2024
Merged

Optimise SpaceEngine.signature #21791

merged 6 commits into from
Oct 30, 2024

Conversation

dwijnand
Copy link
Member

Fixes #21569

Using `constrained` on a TypeLambda means adding one TypeLambda for all
the type parameters in tp1, while newTypeVar creates a TypeLambda for
each type parameter.
Instead of creating type vars, constraining against them, then
instantiating them, just instantiate the PolyType with the scrutinee
type args (or the lo/hi bound or bounded wildcard from the param).
@dwijnand dwijnand marked this pull request as ready for review October 16, 2024 21:38
@dwijnand dwijnand requested a review from lrytz October 16, 2024 21:39
@WojciechMazur
Copy link
Contributor

I've run the OpenCB against these changes. So far there seems to be no new regressions since last nightly.

@dwijnand
Copy link
Member Author

dwijnand commented Oct 30, 2024

@lrytz I dropped the extra special handling, happy to approve this now?

Copy link
Member

@lrytz lrytz left a comment

Choose a reason for hiding this comment

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

Yep, LGTM!

@dwijnand dwijnand merged commit 71b0aea into scala:main Oct 30, 2024
28 checks passed
@dwijnand dwijnand deleted the reg-jzon-take2 branch October 30, 2024 14:06
@fommil
Copy link

fommil commented Oct 30, 2024

"may my presence forever slow your build" is one of the lesser known Halloween curses, but there you have it.

Hopefully this annoys somebody enough to look into why the compilation performance regressed so much in the first place vs Scala 2, not just for this recent change. Or is this now expected to have Scala 2 levels of perf?

Probably these test files need some attribution on them, since they are so big, but I don't feel like I'm so proud enough of them to push for that. Have fun.

@Gedochao Gedochao added the backport:nominated If we agree to backport this PR, replace this tag with "backport:accepted", otherwise delete it. label Nov 4, 2024
@Gedochao
Copy link
Contributor

Gedochao commented Nov 4, 2024

@WojciechMazur should we backport this to 3.6.2?

WojciechMazur added a commit that referenced this pull request Nov 8, 2024
Backports #21791 to the 3.6.2 branch.

PR submitted by the release tooling.
[skip ci]
@WojciechMazur WojciechMazur added backport:done This PR was successfully backported. and removed backport:nominated If we agree to backport this PR, replace this tag with "backport:accepted", otherwise delete it. labels Nov 8, 2024
@WojciechMazur WojciechMazur added this to the 3.6.2 milestone Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:done This PR was successfully backported.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Performance regression in fommil/jzon
5 participants