Re: gdmgreeter CPU usage



On Wed, 2006-01-18 at 17:00 +0000, Padraig O'Briain wrote:

> I see that pango_font_map_load_font is called about 200 times; 12 of
> these calls are for description "Bitstream Vera Sans" and the rest are
> for "Sans". The cost of the calls for "Sans" are negligible excapt for
> the first one.
> 
> The calls for "Bitstream Vera Sans" are the calls which call FcFontSort
> and cost about 30 ms each.

So far no one has replied to this question:

> One simple question that will undoubtedly give away my ignorance:  why
> does fcmatch.c use doubles for the match distances?  How big can those
> values grow, anyway?  The only double-ish thing I can see there is the
> initializations of big values to 1e99, only to be replaced immediately
> by small numbers when doing the comparisons.

I guess we could start with the optimizations there.

Also, aside from Stephan's example on how to write a benchmark, did
anyone actually implement a benchmark yet and profile it?

  Federico




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