Code parsing speed

edited 4:12PM in FastReport 4.0
I have a quite complex report with many OnBeforePrint events and about 1500 lines of code. It takes about 10 seconds from running report to print preview. After discovering where is the bottleneck I found out that it takes 8 secs for parsing code before the code starts executing.
Simple and foolish example...
procedure ReportTitle1OnBeforePrint(Sender: TfrxComponent);
var list: TStringList;
begin
  try
    list := TStringList.create();                 
    list.add('aaa');
    list.add('bbbb');
    list.add('accc');        
  finally
    list.free;
  end;
  // repeat this try..finnaly 200x                                                                          
end;
begin
  showmessage('parsed, ready to execute');
end.

Is this normal speed or can be parsed faster?

Comments

  • edited 4:12PM
    Sorry, we can't do it faster. The FastScript is already optimized.

Leave a Comment