T
Tristan
In C# why is:
int[] myArray = new int[5000,5000];
for (int y = 0; y < 5000; y++)
{
for (int x = 0; x < 5000; x++)
{
myArray[x, y] = 1;
}
}
So slow!!!
I think It's the indexing into the array which is causing
performance hits in my application but why? Either this
or am I simply using too big an array to expect a
quick operation?
If it's a problem with C# is there a way around this?
Many thanks.
Tristan.
int[] myArray = new int[5000,5000];
for (int y = 0; y < 5000; y++)
{
for (int x = 0; x < 5000; x++)
{
myArray[x, y] = 1;
}
}
So slow!!!
I think It's the indexing into the array which is causing
performance hits in my application but why? Either this
or am I simply using too big an array to expect a
quick operation?
If it's a problem with C# is there a way around this?
Many thanks.
Tristan.