mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-28 18:30:06 +00:00
[REFLECTION BREAKING] Modify the internals of the map type to increase performance
This commit is contained in:
@@ -210,11 +210,7 @@ marshal_arg :: proc(b: ^strings.Builder, v: any) -> Marshal_Error {
|
||||
data := uintptr(entries.data) + uintptr(i*entry_size);
|
||||
header := cast(^Map_Entry_Header)data;
|
||||
|
||||
if reflect.is_string(info.key) {
|
||||
marshal_arg(b, header.key.str);
|
||||
} else {
|
||||
marshal_arg(b, any{rawptr(&header.key.hash), info.key.id});
|
||||
}
|
||||
marshal_arg(b, any{rawptr(&header.key.key.val), info.key.id});
|
||||
|
||||
write_string(b, ": ");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user