是否可变名长度为此事表现的C#? [英] Does variable name length matter for performance C#?

查看:97
本文介绍了是否可变名长度为此事表现的C#?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如果使用较长的描述性的变量名中的WinForms C#事宜的表现一直想知道?我问这个问题,因为在AutoIt的V3(解释语言),它被带到了那个有像 AA ,而不是一个带有短名的变量 veryLongVariableName 是非常快很多(当程序更大然后5衬垫)。我想知道,如果它在C#中的一样吗?

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#?

推荐答案

没有没有。编译器实际上不保存原始变量的名字,你可以看看与任何反汇编编译的程序集的IL代码。

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.

这篇关于是否可变名长度为此事表现的C#?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆