Am 14.06.2007 um 18:44 schrieb Abdelrazak Younes:
Stefan Schimanski wrote:Seems to be false alarm. getInset does not show up very much anymore without stdlib-debug. But there are still some interesting facts:38% QPainter::drawText.This was expected on Mac. Still, IIRC the number is lower than what Bennett used to report a while ago. It shows that Qt4.3 is much better at drawing on Mac than previous version. Hopefully this number will keep decreasing with further release.16% drawing of empty inline math insets (around every 20th character in the text)
What is that?
Basically the InsetMathHull::draw call with everything which follows. So at the end some QLPainter::line calls which turn out to be quite expensive IMO.
16% for metrics calculationCalculation or hash table lookup?
The whole updateMetrics call, everything there summed up.
I think the only way to really reduce the amount to draw is to switch to line based redrawing or even finer and relative coordinates for scrolling.Once we re-organize the background painting in rowpainter (thus getting rid of wide() etc) I believe we will see a nice speedup because only the current line will have to be redrawn in all cases (within Inset or not).
That sounds good. Stefan
PGP.sig
Description: Signierter Teil der Nachricht