3 ms·
From the linked article: >In no way, shape, or form am I making a case that avoiding function calls alone directly helps performance. Carmack argues that inli
by anonred 6y ago
From the linked article:
>In no way, shape, or form am I making a case that avoiding function calls alone directly helps performance.
Carmack argues that inlining (small) functions can reduce bugs in handling state by making the logic easier to follow and eliminating any possibility of others calling intermediary functions.
- johncolanduoni 6y agoHe even argues for taking minor performance hints if it reduces variations in execution paths.