Optimization, if or multiple function calls?

Опубликовано: 03 Март 2026
на канале: 02GEEK
86
0

Which of these would be more optimal? It's code that needs to decide what to do every decimal increase, 10/100/1000... up to 1m. "value" increases by 1 each time an event happens, if that is important in deciding which is more optimal



I'm thinking the first would be the best way to do it, with multiple functions?
https://forums.adobe.com/thread/1832526