Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Inline generated functions #389

Merged
merged 1 commit into from
Nov 17, 2024
Merged

Conversation

marc0246
Copy link
Contributor

This results in a 3.08% performance increase in one of my real life workloads. I was using the EnumIter expansion, but there's no reason any of the other expansions shouldn't have the attribute (except formatting functions, as inlining those is generally bad practice, especially error displaying and debug-formatting). For iterators especially, and even more so in a hot hot loop like in my case, not inlining the iterator can be devastating. Note that not even fat LTO saved me in this case which I'm already using.

@Peternator7 Peternator7 merged commit e42916a into Peternator7:master Nov 17, 2024
1 check failed
@Peternator7
Copy link
Owner

Makes sense. Thanks for the PR 👍

@marc0246 marc0246 deleted the inline branch November 18, 2024 14:51
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants