Skip to content

Commit 02a839f

Browse files
committed
cleanup the main LPR, to prepare for single-file submissions
1 parent 1d830dc commit 02a839f

File tree

1 file changed

+7
-33
lines changed

1 file changed

+7
-33
lines changed

entries/ghatem-fpc/src/OneBRCproj.lpr

Lines changed: 7 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ TOneBRCApp = class(TCustomApplication)
2222
protected
2323
procedure DoRun; override;
2424
public
25-
constructor Create(TheOwner: TComponent); override;
25+
constructor Create(aOwner: TComponent); override;
2626
destructor Destroy; override;
2727
procedure WriteHelp; virtual;
2828
end;
@@ -41,36 +41,6 @@ procedure TOneBRCApp.RunOneBRC;
4141
vOneBRC.WaitAll;
4242
vOneBRC.MergeAll;
4343
vOneBRC.GenerateOutput;
44-
45-
//vStart := GetTickCount;
46-
//vOneBRC.mORMotMMF (FFileName);
47-
//vTime := GetTickCount - vStart;
48-
//WriteLn('read: ' + FloatToStr(vTime / 1000));
49-
//WriteLn('-----------');
50-
//WriteLn;
51-
//
52-
//vStart := GetTickCount;
53-
//vOneBRC.DispatchThreads;
54-
//vOneBRC.WaitAll;
55-
//vTime := GetTickCount - vStart;
56-
//WriteLn('process: ' + FloatToStr(vTime / 1000));
57-
//WriteLn('-----------');
58-
//WriteLn;
59-
//
60-
//vStart := GetTickCount;
61-
//vOneBRC.MergeAll;
62-
//vTime := GetTickCount - vStart;
63-
//WriteLn('merge: ' + FloatToStr(vTime / 1000));
64-
//WriteLn('-----------');
65-
//WriteLn;
66-
//
67-
//vStart := GetTickCount;
68-
//vOneBRC.GenerateOutput;
69-
//vTime := GetTickCount - vStart;
70-
//WriteLn('generate: ' + FloatToStr(vTime / 1000));
71-
//WriteLn('-----------');
72-
//WriteLn;
73-
//ReadLn;
7444
except
7545
on E: Exception do
7646
begin
@@ -83,6 +53,8 @@ procedure TOneBRCApp.RunOneBRC;
8353
end;
8454
end;
8555

56+
{$REGION TOneBRCApp scaffolding}
57+
8658
procedure TOneBRCApp.DoRun;
8759
var
8860
ErrorMsg: String;
@@ -146,9 +118,9 @@ procedure TOneBRCApp.DoRun;
146118
Terminate;
147119
end;
148120

149-
constructor TOneBRCApp.Create(TheOwner: TComponent);
121+
constructor TOneBRCApp.Create(aOwner: TComponent);
150122
begin
151-
inherited Create(TheOwner);
123+
inherited Create(aOwner);
152124
StopOnException:=True;
153125
end;
154126

@@ -172,3 +144,5 @@ procedure TOneBRCApp.WriteHelp;
172144
Application.Free;
173145
end.
174146

147+
{$ENDREGION}
148+

0 commit comments

Comments
 (0)