I was using a code-parser that checks for syntax errors and such, running through some old code, and saw the following suggestion:
Str functions should use $( for speed:
Trim(
I figure that using the '$' enforces strong typing (so we know it's going to be a string), but how much time does that really save?
So the question is: what extra steps happen behind the scenes without the '$' in place and how expensive are these extra steps?
It's pretty much guaranteed to be negligible these days, but I'm curious as to the relative cost; if not having the '$' costs 4 ticks, but having '$' costs 1 tick, then that's a pretty significant increase in relative performance.