Skip to content

inlining get_default_implementation and get_single_implementation#932

Merged
lemire merged 2 commits intomasterfrom
inline_impl_functions
Feb 6, 2026
Merged

inlining get_default_implementation and get_single_implementation#932
lemire merged 2 commits intomasterfrom
inline_impl_functions

Conversation

@lemire
Copy link
Copy Markdown
Member

@lemire lemire commented Feb 5, 2026

The the get_default_implementation and get_single_implementation functions should be inlined, for best performance. (They appear in the profiling data.)

@lemire lemire requested a review from pauldreik February 6, 2026 00:23
Copy link
Copy Markdown
Collaborator

@pauldreik pauldreik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch!

did you measure any performance difference?

@lemire
Copy link
Copy Markdown
Member Author

lemire commented Feb 6, 2026

did you measure any performance difference?

Yes, maybe 5% of 10% difference on very short calls in some instances.

@lemire lemire merged commit 9e72172 into master Feb 6, 2026
108 checks passed
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