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

Use NonZeroU64 to optimize encoded_len_varint #1192

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Nov 23, 2024

  1. perf: NonZeroU64 to optimize encoded_len_varint

    The leading zeros count may perform better on many architectures
    when the zero case is excluded.
    Also use ilog2 as shorthand for the leading zeros trick because
    it makes more clearly what we mean to get, and should be ideally
    optimized by the compiler.
    mzabaluev committed Nov 23, 2024
    Configuration menu
    Copy the full SHA
    ec744f5 View commit details
    Browse the repository at this point in the history