File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ TBRCDictionary = class
8989 destructor Destroy; override;
9090
9191 // simple wrapper to find station-record pointers
92- function TryGetValue (const aKey: Cardinal; const aThreadNb: TThreadCount; out aValue: PStationData): Boolean;
92+ function TryGetValue (const aKey: Cardinal; const aThreadNb: TThreadCount; out aValue: PStationData): Boolean; { $IFNDEF VALGRIND } inline; { $ENDIF }
9393
9494 // multithread-unprotected: adds a firstly-encountered station-data (temp, name)
9595 procedure Add (const aHashIdx: THashSize; const aThreadNb: TThreadCount; const aTemp: SmallInt; const aStationName: AnsiString); { $IFNDEF VALGRIND} inline; { $ENDIF}
@@ -569,7 +569,7 @@ procedure TOneBRC.GenerateOutput;
569569begin
570570 vStream := TStringStream.Create;
571571 vStations := TStringList.Create;
572- vStations.Capacity := cDictSize ;
572+ vStations.Capacity := cNumStations ;
573573 vStations.UseLocale := False;
574574 try
575575 vStations.BeginUpdate;
You can’t perform that action at this time.
0 commit comments