Uh oh!
There was an error while loading. Please reload this page.
gh-90928: Improve static initialization of keywords tuple in AC - #95907
Conversation
Deduce num_keywords from f.parameters
ericsnowcurrently
left a comment
There was a problem hiding this comment.
Thanks for working on this! Mostly LGTM.
Also, can you drop "num_keywords" from template_dict now?
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
bedevere-bot
commented
Aug 11, 2022
When you're done making the requested changes, leave the comment: |
erlend-aasland
commented
Aug 11, 2022
It is already dropped :) |
erlend-aasland
commented
Aug 11, 2022
I have made the requested changes; please review again. |
bedevere-bot
commented
Aug 11, 2022
Thanks for making the requested changes! @ericsnowcurrently: please review the changes made to this pull request. |
ericsnowcurrently
left a comment
There was a problem hiding this comment.
LGTM
I'll leave it up to you about the two comments I left.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Uh oh!
There was an error while loading. Please reload this page.
erlend-aasland
commented
Aug 12, 2022
Thanks for reviewing; highly appreciated. I'll make a quick adjustment before landing. |
- inline len(keywords) - use NUM_KEYWORDS constant for improved readability in generated code
erlend-aasland
commented
Aug 12, 2022
I'm done with the last round of adjustments. I ended up adding both of your last suggestions. Thanks again. |
erlend-aasland
commented
Aug 12, 2022
FYI, I'll wait with merging until Kumar has finished his review. |
erlend-aasland
commented
Aug 13, 2022
Thanks for the reviews! |
Calculate
num_keywordsduring template generation instead of leaving it to the preprocessor. This makes for much smaller and easier to read (FWIW) AC output.See discussion in #95860 (comment)