コード例 #1
0
        public void DoD_Parser_ArrayOfStructs_HotColdSplit()
        {
            DoDPOParser_v3 parser   = new DoDPOParser_v3();
            var            lines_v3 = parser.Parse(lines);

            for (int s = 0; s < Samples; s++)
            {
                double sum = 0;

                for (int i = 0; i < lines_v3.Count; i++)
                {
                    sum += lines_v3[i].Amount;
                }
            }
        }
コード例 #2
0
        public static void TestAmountPO_DoD_SateMachine_HotColdSplit()
        {
            var parser = new DoDPOParser_v3();
            var lines  = parser.Parse(@"C:\Users\Y700-17\Desktop\DataOrientedDesign\DoDSamples\DoDSamples\Samples\POParser\Sample.po");

            Utils.Measure(() =>
            {
                for (int s = 0; s < samples; s++)
                {
                    double sum = 0;

                    foreach (var line in lines)
                    {
                        sum += line.Amount;
                    }
                }
            });
        }