Skip to content

Inline generated functions#389

Merged
Peternator7 merged 1 commit intoPeternator7:masterfrom
marc0246:inline
Nov 17, 2024
Merged

Inline generated functions#389
Peternator7 merged 1 commit intoPeternator7:masterfrom
marc0246:inline

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
@Peternator7
Copy link
Owner

Makes sense. Thanks for the PR 👍

@marc0246 marc0246 deleted the inline branch November 18, 2024 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants