Are there any performance differences between stru...
# general
k
Are there any performance differences between struct and map datatypes?
j
I believe maps are actually a light wrapper on top of a
struct[key: list[...], value: list[...]]
or something like that, so it’s not a ton of performance difference!
Either that, or
list[struct[key: ..., value: ...]]
The main thing you get is that semantically it’s nicer, because you can do a
.get("my_key")
for a map type, which you can’t really do without knowing that logical information that your type is in fact, a map
k
Cool! Thanks!