I need class with array inside:
class FirstClass
{
int x = 0;
int y = 0;
}
class SecondClass
{
FirstClass[] firstclass = ???????? // size of array is unknown
OtherClass[][] otherclass = ???????? // i need also multidimensional array or array of arrays
}
Normally im using List<>
for purposes like this, but today i need fastest possible solution (a lot of data to process), and i think Array should be faster than List (I've read somewhere that List is a lot slower than Array).
Question is - what to put into "????????" in my code?
Edit:
My class is a neural network object. Biggest array will contain learning data (100000+ data rows with 50+ fields, float or double datatype).
If Array is 1% faster than List - i need Array.