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

improvement: Apply Scala2 Cleanup phase optimizations to generation of Array literals #3742

Merged

Conversation

WojciechMazur
Copy link
Contributor

The Scala 2 compiler plugin was missing backend optimisation allowing to replace Array(first, wrapArray(tail*)) into a single Array(first, tail*) invocation. It lead to double allocations and slower runtime. Scala 3 is not affected by this change - array literals were working correctly there already

@WojciechMazur WojciechMazur merged commit 4887d09 into scala-native:main Feb 12, 2024
61 of 62 checks passed
@WojciechMazur WojciechMazur deleted the improvement/scala2-arrays branch February 12, 2024 11:12
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.

None yet

1 participant