Split keys and slots and allocate them both together

This commit is contained in:
gingerBill
2026-03-16 18:04:25 +00:00
parent 36d5a19115
commit cb7a87773b
4 changed files with 46 additions and 27 deletions

View File

@@ -789,7 +789,7 @@ gb_internal bool check_using_stmt_entity(CheckerContext *ctx, AstUsingStmt *us,
defer (rw_mutex_unlock(&scope->mutex));
for (auto const &entry : scope->elements) {
String name = entry.key;
String name = scope->elements.keys[entry.hash & (scope->elements.cap-1)];
u32 hash = entry.hash;
Entity *decl = entry.value;
if (!is_entity_exported(decl, true)) continue;