perf(codegen): optimize Codegen::print_list method#10242
perf(codegen): optimize Codegen::print_list method#10242graphite-app[bot] merged 1 commit intomainfrom
Codegen::print_list method#10242Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
CodSpeed Instrumentation Performance ReportMerging #10242 will not alter performanceComparing Summary
|
|
Look at the comment above this function, seems like it's better this time? |
b97134a to
0a09d4e
Compare
It seems better than the last optimization while maintaining readability. |
|
It seems adding |
Merge activity
|
It looks like has fewer instructions than before. See https://godbolt.org/z/jE1o5rvGq NOTE: This approach didn't bring notable performance improvement, so I don't have a strong opinion on which way.
1a18a6b to
6c9b094
Compare
|
Just to clarify, the purpose of this change is better readability? From the Godbolt link you gave, it looks like it makes no difference to assembly either way. That's not criticism, I'm just interested. |
Yes, the performance is unchanged. Boshen said that merging it because better readability. |

It looks like has fewer instructions than before. See https://godbolt.org/z/jE1o5rvGq
NOTE: This approach didn't bring notable performance improvement, so I don't have a strong opinion on which way.