Hello,
I need to process about 500,000 data points each consisting of 4 decimals. I'd like to use and array of structs to do this. Would this be much slower than using an array of arrays? It seems that memory won't be an issue, but speed will - it needs to be fast.
Quick code sample of two options:
Option 1:
public struct Struct
{
public decimal A { get; set; }
public decimal B { get; set; }
public decimal C { get; set; }
public decimal D { get; set; }
}
Usage:
private Struct[] data;
Option 2:
private decimal [][] data;
Also, is decimal
the right data type to use? The data points are money...
Thanks! Brian