mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-17 03:12:22 -07:00
[REFLECTION BREAKING] Modify the internals of the map type to increase performance
This commit is contained in:
@@ -2794,6 +2794,8 @@ void check_map_type(CheckerContext *ctx, Type *type, Ast *node) {
|
||||
|
||||
if (is_type_string(key)) {
|
||||
add_package_dependency(ctx, "runtime", "default_hash_string");
|
||||
} else {
|
||||
add_package_dependency(ctx, "runtime", "default_hash_ptr");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user