diff options
Diffstat (limited to 'instance_table.c')
-rw-r--r-- | instance_table.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/instance_table.c b/instance_table.c index 85bb71d..571a529 100644 --- a/instance_table.c +++ b/instance_table.c @@ -318,6 +318,7 @@ static Instance *instance_table_adda(Allocator *a, HashTable *h, Value v, Type * for (U64 i = 0; i < h->cap; ++i) { /* re-hash */ if (old_occupied[i]) { + /* OPTIM: keep hashes around */ U64 index = val_hash(old_data[i]->val, t) % new_cap; while (new_occupied[index]) { ++index; |