Re: gdmgreeter CPU usage



On Wed, 2006-01-11 at 10:42 +0100, Stephan Kulow wrote:
> Am Mittwoch, 11. Januar 2006 10:05 schrieb Padraig O'Briain:
> > FcFontSort is called 12 times during gdmgreeter startup, with a total
> > cost of 205 ms of CPU.
> 
> You must have very few fonts. Install around 1000 (fc-list | wc -l) and it 
> will be 2s :)

fc-list | wc -l gives me 301.


> FcFontSort has some nice square algorithm and the new fontconfig made
> FcInit way cheaper with the price of FcFontSort being (a bit) more expensive.
> 
> If you want to see a little picture of firefox starting up and rendering 
> fontconfig.org, look here: http://www.kdedevelopers.org/node/1654
> 
> It will be very hard for you to spot FcInit, but the 1 billion instructions 
> spent in (roughly 7 if I remember correctly) calls to FcFontSort are hard to 
> miss. I leave the calculation of how much time 1 billion instructions take
> on your hardware to the reader [that are pentium instructions btw].
> 
> So whereever you can: avoid FcFontSort and use FcFontMatch - the returned 
> FontSet is good enough for most installations and FcFontMatch is a linear 
> algorithm (in >= 2.3.92).
> 
> Greetings, Stephan




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