Add TODO notes

This commit is contained in:
Louis Dureuil
2023-03-27 11:04:04 +02:00
parent 00bad8c716
commit 16fefd364e
5 changed files with 31 additions and 0 deletions

View File

@ -16,6 +16,9 @@ impl<T> SmallBitmap<T> {
pub fn for_interned_values_in(interner: &FixedSizeInterner<T>) -> Self {
Self::new(interner.len())
}
// universe_length not stored anywhere, only used to decide between tiny/small
// universe_length: passed 63, actual length will be rounded up 64
// passed 66, actual 64 * xs.len() as u16 = 128, passed sized rounded up to the next 64
pub fn new(universe_length: u16) -> Self {
if universe_length <= 64 {
Self { internal: SmallBitmapInternal::Tiny(0), _phantom: PhantomData }