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

optimize more tuple splatting independent of length when possible #35930

Merged
merged 1 commit into from
May 19, 2020

Conversation

JeffBezanson
Copy link
Member

For the heck of it, I tried to use fill_to_length to create a constant tuple (Base.fill_to_length((),0x00,Val(160))), and to my surprise the generated code still contained a call to _apply_iterate. That was because the tuple exceeds MAX_TUPLE_SPLAT. That limit should perhaps be higher for inlining than for inference, but this is also an easy case we can optimize anyway.

@JeffBezanson JeffBezanson added performance Must go faster compiler:optimizer Optimization passes (mostly in base/compiler/ssair/) labels May 18, 2020
@JeffBezanson JeffBezanson merged commit 9d70d45 into master May 19, 2020
@JeffBezanson JeffBezanson deleted the jb/splatwithempties branch May 19, 2020 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:optimizer Optimization passes (mostly in base/compiler/ssair/) performance Must go faster
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants