Re:Signs You're a Crappy Programmer (and don't know it)
by Goladus on Friday November 23, 2007 @12:30PM
(#83001)
Are the costs of function call overhead worth worrying about?
[ Parent
| on HN ]
Re:Signs You're a Crappy Programmer (and don't know it)
by edw519 on Friday November 23, 2007 @12:45PM
(#83005)
Maybe 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?
Re:Signs You're a Crappy Programmer (and don't know it)
by boucher on Friday November 23, 2007 @12:47PM
(#83006)
Not 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.