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

Reuse temp variables in other code generators #22011

Merged
merged 10 commits into from
May 17, 2024

Conversation

pettyjamesm
Copy link
Member

Description

Updates more code generators to use Scope#getOrCreateTempVariable to increase variable reuse opportunities and reduce overall generated code size.

Additional context and related issues

Follows up on work done in #22004 on RowExpressionCodeGenerator and enabled by airlift/bytecode#18

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:

@cla-bot cla-bot bot added the cla-signed label May 17, 2024
@pettyjamesm pettyjamesm marked this pull request as ready for review May 17, 2024 17:47
@pettyjamesm pettyjamesm requested a review from dain May 17, 2024 17:47
@pettyjamesm pettyjamesm force-pushed the reuse-more-variables branch 2 times, most recently from 6beba0f to 44238ca Compare May 17, 2024 17:55
@pettyjamesm pettyjamesm force-pushed the reuse-more-variables branch from 44238ca to 279d9d3 Compare May 17, 2024 22:56
@pettyjamesm pettyjamesm merged commit 5fc1b1a into trinodb:master May 17, 2024
101 checks passed
@pettyjamesm pettyjamesm deleted the reuse-more-variables branch May 17, 2024 23:57
@github-actions github-actions bot added this to the 449 milestone May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants