Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Avoid std::uint16_t #17

Merged
merged 2 commits into from
Apr 1, 2022
Merged

Avoid std::uint16_t #17

merged 2 commits into from
Apr 1, 2022

Conversation

tzaeschke
Copy link
Owner

This patch replaces the use of std::uint16_t with std::uint32_t. This increases performance of emplace/insert by up to 15%, see attached benchmark results.
The exact reason has not be determined but this is likely due to std::uint16_t tending to require more CPU cycles for math operations. It may also be related to less efficient optimization when using std::uint16_t types in the with vectorization.
2022-04-avoid-uin16.txt

@tzaeschke tzaeschke self-assigned this Apr 1, 2022
@tzaeschke tzaeschke merged commit 039da73 into master Apr 1, 2022
@tzaeschke tzaeschke deleted the improve/avoid-uint_16 branch April 1, 2022 12:18
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.

1 participant