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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.