Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does variable name length matter for performance C#?

Tags:

I've been wondering if using long descriptive variable names in WinForms C# matters for performance? I'm asking this question since in AutoIt v3 (interpreted language) it was brought up that having variables with short names like aa instead of veryLongVariableName is much much faster (when program is bigger then 5 liner). I'm wondering if it's the same in C#?

like image 484
MadBoy Avatar asked Mar 14 '10 18:03

MadBoy


1 Answers

No it doesn't. Compiler actually does not save original variable names, you can look at the IL code of any compiled assembly with disassembler.

like image 68
Andrew Bezzub Avatar answered Oct 20 '22 16:10

Andrew Bezzub