Skip to content

Conversation

servusdei2018
Copy link
Contributor

The fallback implementation for MostSignificantBit was optimized, replacing the while loop with a series of bitwise operations. Tests on my system indicate a 3-4x speedup.

@servusdei2018
Copy link
Contributor Author

And here's a reference benchmark comparing the original and modified implementations: https://godbolt.org/z/fE8vvfcv9

@ondys ondys self-assigned this Sep 4, 2025
@ondys ondys merged commit 32d6f31 into google:main Sep 4, 2025
31 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