Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information