3 ms·
It's difficult to know without the context, but inserting/removing from a linked list is so simple it's probably shorter than a function call, and due to the li
by AshamedCaptain 4y ago
It's difficult to know without the context, but inserting/removing from a linked list is so simple it's probably shorter than a function call, and due to the limitations about how parameter passing works in C and many other languages, the code may even be cognitively simpler without the function call.
In such a context, the only cost of not creating a function is that you make the code harder to refactor... hardly a concern for a game developer.