3 ms·
I haven't read that in awhile. But the argument was around optimisation rather how easy it is to understand.
by UK-Al05 6y ago
I haven't read that in awhile. But the argument was around optimisation rather how easy it is to understand.
- wsc981 6y agoThe way I read the article, I believe his main point was to make reasoning about state easier, even at a small cost to performance, making code easier to test and debug.
- ratww 6y agoNot really, Carmack explicitly states that this is not a performance optimisation in the article: > In no way, shape, or form am I making a case that avoiding function calls alone directly helps performance. Rather, he argues that (among other things) this is a way to make current bugs more visible and to avoid future bugs by disallowing calling functions that should be inlined.