mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-14 06:13:45 +00:00
Split keys and slots and allocate them both together
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user