Add better hmap compacting

This commit is contained in:
Hugo Mårdbrink 2025-04-18 17:58:29 +02:00
parent 187883883b
commit 274d35ea5d
4 changed files with 103 additions and 50 deletions

View file

@ -11,6 +11,8 @@ typedef struct {
usize prime_idx;
usize key_size;
usize val_size;
usize tombstone_count;
} HashMap;
void hmap_init(HashMap* hmap, usize key_size, usize val_size);