Andre Poenitz wrote:
On Wed, Jun 14, 2006 at 10:15:52AM +0200, Abdelrazak Younes wrote:
+       // fi is a reference to the pointer type (QLFontInfo *) in the
+       // fontinfo_ table.
+       QPainter * & qp =
+               qpainters_[current_color_][current_ls_][current_lw_];
+       if (qp)
+               return qp;

How much do we gain by this caching?

Nothing ;-)... Actually that was the opposite. But I did not cache properly the QPainter that matter, those that are used in drawText. I guess we need two sort of caching one indexed by fonts and font sizes and the other already done for line painting.

Abdel.

Reply via email to