[Fontconfig] Re: severe performance regression when global fonts.cache-2 files are missing

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

 



Mike FABIAN <mfabian@xxxxxxx> ????????:

> This is very strange, certainly there is a bug but it appears to be
> not easy to reproduce.

I found that I can easily by writing some random junk into ~/.fonts.cache-2.
Like this:

mfabian@magellan:~$ echo "hello" > .fonts.cache-2
mfabian@magellan:~$ time fc-list "Luxi Sans" ; ls -l --time-style=full-iso .fonts.cache-2
Luxi Sans:style=Bold
Luxi Sans:style=Regular
Luxi Sans:style=Oblique
Luxi Sans:style=Bold Oblique

real	2m21.643s
user	0m50.751s
sys	0m3.060s
-rw-------  1 mfabian suse 4564178 2005-10-20 23:51:02.000000000 +0200 .fonts.cache-2
mfabian@magellan:~$ time fc-list "Luxi Sans" ; ls -l --time-style=full-iso .fonts.cache-2
Luxi Sans:style=Bold
Luxi Sans:style=Regular
Luxi Sans:style=Oblique
Luxi Sans:style=Bold Oblique

real	2m16.382s
user	0m50.819s
sys	0m2.968s
-rw-------  1 mfabian suse 9127122 2005-10-20 23:53:52.000000000 +0200 .fonts.cache-2
mfabian@magellan:~$ time fc-list "Luxi Sans" ; ls -l --time-style=full-iso .fonts.cache-2
Luxi Sans:style=Bold
Luxi Sans:style=Regular
Luxi Sans:style=Oblique
Luxi Sans:style=Bold Oblique

real	2m19.644s
user	0m50.855s
sys	0m3.008s
-rw-------  1 mfabian suse 13690066 2005-10-21 00:29:06.000000000 +0200 .fonts.cache-2
mfabian@magellan:~$ time fc-list "Luxi Sans" ; ls -l --time-style=full-iso .fonts.cache-2
Luxi Sans:style=Bold
Luxi Sans:style=Regular
Luxi Sans:style=Oblique
Luxi Sans:style=Bold Oblique

real	2m23.269s
user	0m50.883s
sys	0m3.060s
-rw-------  1 mfabian suse 18253010 2005-10-21 00:57:03.000000000 +0200 .fonts.cache-2
mfabian@magellan:~$

The first call of "fc-list" should have fixed the broken
~/.fonts.cache-2 file, but apparently this didn't work, subsequent
calls of "fc-list" continue to take a lot of time and the
~/.fonts.cache-2 file grows bigger and bigger with each call.

-- 
Mike FABIAN   <mfabian@xxxxxxx>   http://www.suse.de/~mfabian
?????????????



[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux