Possible Duplicate:
.NET Integer vs Int16?
Which is faster for large numbers of tests in a tight loop?
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;
}
or is there no difference?
Best thing to do is benchmark it and see for yourself.
Normally, on 32-bit architectures, there should either be no difference, or 32 should be faster (native word size is usually the fastest, even if smaller ints are supported). Ditto 64/64.