Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions entries/ghatem-fpc/src/OneBRC-largerec.lpr
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ TBRCDictionary = class
destructor Destroy; override;

// simple wrapper to find station-record pointers
function TryGetValue (const aKey: Cardinal; const aThreadNb: TThreadCount; out aValue: PStationData): Boolean;
function TryGetValue (const aKey: Cardinal; const aThreadNb: TThreadCount; out aValue: PStationData): Boolean; {$IFNDEF VALGRIND} inline; {$ENDIF}

// multithread-unprotected: adds a firstly-encountered station-data (temp, name)
procedure Add (const aHashIdx: THashSize; const aThreadNb: TThreadCount; const aTemp: SmallInt; const aStationName: AnsiString); {$IFNDEF VALGRIND} inline; {$ENDIF}
Expand Down Expand Up @@ -569,7 +569,7 @@ procedure TOneBRC.GenerateOutput;
begin
vStream := TStringStream.Create;
vStations := TStringList.Create;
vStations.Capacity := cDictSize;
vStations.Capacity := cNumStations;
vStations.UseLocale := False;
try
vStations.BeginUpdate;
Expand Down