4 ms·
I agree about modularity and encapsulation being important. Usually I try to weight the overhead of having more function prototypes to track, indirections in t
by jeremiep 9y ago
I agree about modularity and encapsulation being important.
Usually I try to weight the overhead of having more function prototypes to track, indirections in the main function and whatnot versus the overhead of having it all inlined.
A lot of things become more evident as you inline one-use functions, because the whole context is now local.
- vram22 9y agoYes, it's a tradeoff. Interesting, your comment reminded me of inline functions in C++ and C99; not the same thing (or at least goal) as what we were discussing, but closely related: https://en.wikipedia.org/wiki/Inline_function https://en.wikipedia.org/wiki/Inline_function