Comment Re:Multiple Return Types? (Score 1) 427
> Does still not make sense. The cost for a particular function is the exact same regardless where you call it.
Do you even understand what an Instruction Cache is?? And the importance of locality?? Too -much- inlining can be worse then not enough inlining. If had actually worked on a C++ compiler on consoles then you would understand.
On PS3 some games can have a performance delta upto ~10% depending on a) the DISTANCE away non-inlined functions are, and b) HOW MANY functions are inlined. I'm talking from real world experience not from your theoretical clueless assumptions of how CPUs work.
In theory every memory access has the same cost (time), in practice the 3 levels of cache show a wildly varying performance difference.
You really should read: "What every programmer should know about memory"
http://www.akkadia.org/drepper...
Before continuing to spout off your ignorance.