3 ms·
Are the costs of function call overhead worth worrying about?
by Goladus 19y ago
Are the costs of function call overhead worth worrying about?
- edw519 19y agoMaybe this is the crux of Dijkstra's original arguments. Which is more expensive, a few milliseconds of machine time a few million times or a whole bunch of human time once or twice?
- boucher 19y agoNot at all. What I meant was, you're calling the function in two places, instead of in one place (inside the loop). You've pasted that function call. Thus, by all the same logic, you are introducing a possible future headache.