Didn’t knew [$ "prop"] used more resources and time than .prop. Replaced all of them on my autotile system and reduced the time from avg ~200ms to avg ~20ms.
Variables accessed with the dot operator have their hashes evaluated at compile time, but those accessed with the struct accessor have to have them evaluated at runtime
← Return to Benchmark
Comments
Log in with itch.io to leave a comment.
Didn’t knew
[$ "prop"]
used more resources and time than.prop
. Replaced all of them on my autotile system and reduced the time from avg ~200ms to avg ~20ms.Amazing job!
Variables accessed with the dot operator have their hashes evaluated at compile time, but those accessed with the struct accessor have to have them evaluated at runtime
Cool idea, thanks for making this!
great tool. Kind of upsetting how slow array_push is.
I’ve been asking them for ages to have it allocate memory in chunks the same way ds_list_add does, but it hasn’t happened yet