Make hash internal key be uintptr rather than u64 to reduce entry size

This commit is contained in:
gingerBill
2020-11-23 19:14:36 +00:00
parent b08ec005b2
commit a55568b0c4
4 changed files with 44 additions and 37 deletions
+1 -1
View File
@@ -265,7 +265,7 @@ reserve_map :: proc(m: ^$T/map[$K]$V, capacity: int) {
delete_key :: proc(m: ^$T/map[$K]$V, key: K) {
if m != nil {
key := key;
__dynamic_map_delete_key(__get_map_header(m), __get_map_key(&key));
__dynamic_map_delete_key(__get_map_header(m), __get_map_hash(&key));
}
}