You've already forked lazarus-ccr
* fpspreadsheet: use buffered streams for performance
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3623 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -117,6 +117,9 @@ procedure TCustomFPSExport.DoBeforeExecute;
|
|||||||
begin
|
begin
|
||||||
Inherited;
|
Inherited;
|
||||||
FSpreadsheet:=TsWorkbook.Create;
|
FSpreadsheet:=TsWorkbook.Create;
|
||||||
|
// For extra performance. Note that virtual mode is not an option
|
||||||
|
// due to the data export determining flow of the program.
|
||||||
|
FSpreadsheet.Options:=FSpreadsheet.Options+[boBufStream];
|
||||||
FSheet:=FSpreadsheet.AddWorksheet('1');
|
FSheet:=FSpreadsheet.AddWorksheet('1');
|
||||||
FRow:=0;
|
FRow:=0;
|
||||||
end;
|
end;
|
||||||
@ -166,8 +169,6 @@ procedure TCustomFPSExport.ExportField(EF: TExportFieldItem);
|
|||||||
var
|
var
|
||||||
F : TFPSExportFieldItem;
|
F : TFPSExportFieldItem;
|
||||||
begin
|
begin
|
||||||
// todo: look into virtual mode in case large exports are used, maybe also
|
|
||||||
// boBufStream
|
|
||||||
F:=EF as TFPSExportFieldItem;
|
F:=EF as TFPSExportFieldItem;
|
||||||
with F do
|
with F do
|
||||||
begin
|
begin
|
||||||
|
Reference in New Issue
Block a user