Is a program more efficient if it uses shorter names in the source code?

c++, performance

Solution

There is no performance difference, since those names don't matter at the machine level. A compiler will process those names away so it won't make a difference to your program at all.

Functions names might get turned into labels (which won't affect run-time performance), and variable names will probably get replaced by register reference or stack operations (both independent of the name you use). At this level, the OS is using (and jumping to) memory addresses, not names.

Problem

Or is a function with a shorter name more efficient than the same function with a longer name? Why or Why not? Personally I guess it'll be more efficient but not efficient enough to make us care about it, just guess.

Original source