News for hackers. Stuff that matters.
Re:The Absurdity Of Stacks by quotemstr on Sunday May 21, 2023 @08:19AM (#36020138)
> there can be a cost to calling functions that has been significant for me

Have you measured? Function call overhead is one of those things people usually feel is expensive, but in 99.9% of cases, isn't, especially when adjusting for whether optimizations from avoiding calls come from inlining instead of avoiding the actual call instructions, and especially when the function call is direct, not through a table/PLT/etc.. Worrying about function calls is up there with juggling thread priorities and replacing multiplies with shifts in the ranks of performance superstition and woo.

Re:The Absurdity Of Stacks by Olreich on Sunday May 21, 2023 @08:48PM (#36026148)
I’ve hit the cliff once. That’s why it’s last on the list. It’s not very often, but it is possible to hit and with the other reasons and the ease of avoiding it make it easy to justify the very small (if any) amount of work to avoid recursion most of the time.