anonymous
2012-03-05 13:17:57 UTC
for (int i = 0; i < 1000000000; ++i)
{
for (int j = 0; j < 1000000000; ++j)
{
for (int x = 0; x < 1000000000; ++x) ;
}
}
... takes over 10 minutes with C# and less than a second in C++?
I compiled the same code in the same compiler both set to release, so why such a massive performance difference? I understand C# is managed but that's a huge difference.
Thanks