public void DoD_Parser_ArrayOfStructs() { DoDPOParser_v1a parser = new DoDPOParser_v1a(); var lines_v1 = parser.Parse(lines, out int index); for (int s = 0; s < Samples; s++) { double sum = 0; foreach (var line in lines_v1) { sum += line.Amount; } } }
public static void TestAmountPO_DoD_StateMachineFix() { var parser = new DoDPOParser_v1a(); var lines = parser.Parse(@"C:\Users\Y700-17\Desktop\DataOrientedDesign\DoDSamples\DoDSamples\Samples\POParser\Sample.po", out var index); Utils.Measure(() => { for (int s = 0; s < samples; s++) { double sum = 0; for (int i = 0; i < index; i++) { sum += lines[i].Amount; } } }); }