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

@@ -1050,7 +1050,7 @@ gb_internal OdinDocArray<OdinDocScopeEntry> odin_doc_add_pkg_entries(OdinDocWrit
defer (array_free(&entries));
for (auto const &element : pkg->scope->elements) {
String name = element.key;
String name = pkg->scope->elements.keys[element.hash & (pkg->scope->elements.cap-1)];
Entity *e = element.value;
switch (e->kind) {
case Entity_Invalid: