Are there any performance differences between
float x, y;
// Set x and y
if(x > y)
{
// do something
}
and
float x,y;
// Set x and y
if(x.CompareTo(y) > 0)
{
// do something
}
Are they doing the same thing behind the scenes or is there more to it. I have a piece of performance critical code that does this comparison many, many times and I wanted to check that there wasn't more going on than I thought.