【发布时间】:2010-08-10 20:06:40
【问题描述】:
对于紧密循环中的大量测试,哪个更快?
static bool IsEqual(Int16 a, Int16 b)
{
return a==b;
}
static bool IsEqual(Int32 a, Int32 b)
{
return a==b;
}
static bool IsEqual(Int64 a, Int64 b)
{
return a==b;
}
还是没有区别?
【问题讨论】:
-
以下链接的可能副本。但是,这会对您有所帮助 - stackoverflow.com/questions/129023/net-integer-vs-int16
标签: c# performance