Code parsing speed

edited 7:32PM 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 7:32PM
    Sorry, we can't do it faster. The FastScript is already optimized.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.