getPrinterCapabilities slow
I create a report at run time.
I noticed that setting the units of the report is quit slow : it lasts about
2 seconds.
freport := tppReport.create (self);
freport.dataPipeLine := fpipeLine;
freport.units := utMillimeters; {<<< slow}
It seems that the function TppPrinterInfo.GetPrinterCapabilities takes a lot
of time when called for the first time.
Subsequent calls to that function are fast !
Is there an explanation for this behaviour ?
Regards
Herman Bernaerts
I noticed that setting the units of the report is quit slow : it lasts about
2 seconds.
freport := tppReport.create (self);
freport.dataPipeLine := fpipeLine;
freport.units := utMillimeters; {<<< slow}
It seems that the function TppPrinterInfo.GetPrinterCapabilities takes a lot
of time when called for the first time.
Subsequent calls to that function are fast !
Is there an explanation for this behaviour ?
Regards
Herman Bernaerts
This discussion has been closed.
Comments
the first time. As much information that RB needs about the printer should
be cached, and hence it should lower the communications sent to the driver
for subsequent actions. Naturally, the speed at which this initial
communication with the printer driver is completed is also dependent on the
machine's speed.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
program initialization ?
performance hit because some printer initialization logic was firing. On
systems with slow printer drivers this caused a noticeable delay in loading.
I'm sending a patch to you via email.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
I still see the same delay, with the patch.
Regards
Herman