File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 1111 Baseline.Console;
1212
1313const
14- cNumStations = 42000 ;
15- cDictSize = 42000 * 4 + 1 ;
14+ cNumStations = 41343 ;
15+ cDictSize = 248071 ; // numstations * 6, next prime number
1616 cThreadCount = 32 ;
1717
1818 c0ascii: ShortInt = 48 ;
19- // c9ascii: ShortInt = 57;
20- // cNegAscii: ShortInt = 45;
2119
2220type
2321 // ---------------------------------------
@@ -475,9 +473,9 @@ procedure TOneBRC.Merge(aLeft: TThreadCount; aRight: TThreadCount);
475473 vDataL^.Count := vDataL^.Count + vDataR^.Count;
476474 vDataL^.Sum := vDataL^.Sum + vDataR^.Sum;
477475
478- if (vDataR^.Max > vDataL^.Max) and (vDataR^.Max <> 0 ) then
476+ if (vDataR^.Max > vDataL^.Max) then
479477 vDataL^.Max := vDataR^.Max;
480- if (vDataR^.Min < vDataL^.Min) and (vDataR^.Min <> 0 ) then
478+ if (vDataR^.Min < vDataL^.Min) then
481479 vDataL^.Min := vDataR^.Min;
482480 end ;
483481end ;
You can’t perform that action at this time.
0 commit comments