[Lazarus] Writing >1000 TBufDataset records to file is extremely slow

Werner Pamler werner.pamler at freenet.de
Mon Mar 27 10:33:53 CEST 2017

Am 27.03.2017 um 10:13 schrieb LacaK via Lazarus:
> Try call FExportDataset.MergeChangeLog before:
>>   WriteLn('Saving...'); 
> Does anything in your timing changed ?

Ah - that's it. TBufDataset saves the records instantly now. Probably, 
this should go into the official wiki site for TBufDataset.

But now another issue is coming up: If I increase the number of records 
to 40,000 population of records slows down after about 10,000 records, 
speeds up again, and comes to an apparant stand-still for 32900 records. 
After waiting some time the record counter (which is incremented in 
steps of 100 in my demo) goes up to 33000. Then I gave up.

Again, If I run the demo with TMemDataset, these effects do not show up. 
(As for the current code, see my other post of today).

More information about the Lazarus mailing list