Re: gdmgreeter CPU usage



On Tue, 2006-01-10 at 15:18 +0000, Padraig O'Briain wrote:
> I have dug deeper and found that indeed FcFontSort seems to be the
> culprit. This function is called twice for each call to
> pango_layout_line_get_extents and each call costs about 17 ms.
> 
> This accounts for most of the time.
> 
> I have also looked at greeter_session_init which is costing me 150 ms.
> 17 ms is due FcFontSort and 120 ms is due to FcInit.

FcInit may get better with the newer fontconfigs.  I haven't really
tested them to know what kind of an improvement they can make.

Things like GtkFontSelection *do* need to be made faster for e.g. CJK
locales (bug #319483).  There, FcFontSort is indeed a problem.

But... you have very small timings there :)  Shaving off 2*17 ms from
GDM's startup time?  How long does it take to start up?

  Federico




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