This small PR fixes lack of inlining in count_ones. During profiling of some hot code which used count_ones i noticed that both count_ones and count_ones_impl are not tagged as #[inline] which can lead to significant performance loss if you call them in a tight loop. Note that almost all, if not all methods of fixedbitset are tagged as #[inline].
This small PR fixes lack of inlining in
count_ones
. During profiling of some hot code which usedcount_ones
i noticed that bothcount_ones
andcount_ones_impl
are not tagged as#[inline]
which can lead to significant performance loss if you call them in a tight loop. Note that almost all, if not all methods offixedbitset
are tagged as#[inline]
.