I’ve heard that if you mark the type of the returned variable in a function, then Godot already knows how much memory needs to be allocated for it and the program runs a little faster. Do I need to mark the type of variable for defined variables that have a value? Will it give even a minimal performance boost?
It should give a minimal performance boost and better autocomplete, but for Dictionaries not so much… the keys and values are Variants, I think 4.4 add typed dictionaries so you could use Dictionary[String, int] with the next stable version.