Re: [rrd] Re: pango / fontconfig / cairo performance with rrdtool



Behdad,

> Hi Tobias,
>
> The part creating the layout looks good.  Any *interesting* thing will be
> hidden in other parts of the code, namely the code calling this function.  In
> general I'm quite surprised that you are hitting the load_fontset() path all
> the time as the fontsets should be cached and simply reused.  One way to debug
> it is to run with FC_DEBUG=1 and look for all different Sort Patterns passed
> to fontconfig and see how they differ (I'm guessing minor difference in the size).

I just finished modifying the code, so that I am keeping multiple
sets of PangoFontDescriptions for each combination of font and
size. I then pass the FontDescription into the text function. This
magically resolved the problem ... now the load_fontset gets only
called 3 times or so ...

Does this match expectations ?

cheers
tobi



-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi oetiker ch ++41 62 775 9902 / sb: -9900


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]