fontconfig performance - [Fwd: Re: [cairo] 1.1.6 to 1.2.0 performance]

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

 



I reported this problem to the fontconfig list once before but failed to raise a response.

Perhaps the problem is specific to Fedora? Could somebody try to reproduce?

John
--- Begin Message ---
John Ellson a écrit :
David Turner wrote:
Hello John,


I suspect the problem is fontconfig.

I'm a graphviz developer, and dot, which is a command line utility from graphviz, uses: pango+cairo+fontconfig+freetype Every time I run dot it opens 940 files in /var/cache fontconfig just to resolve "Times-Roman" !

$ strace dot hello.dot 2>&1 | grep open | grep /var/cache/fontconfig | wc
       940    3760   79900

Its not a problem specific to graphviz, or even cairo. The fontconfig utility fc-match has the same problem:

$ strace /usr/bin/fc-match serif 2>&1 | grep open | grep /var/cache/fontconfig | wc
       940    3760   79900

Perhaps this doesn't matter much for a gui appplication, but its a major problem for command line, or web-server applications.

A recent version of fontconfig should be able to use a global cache, instead of having to re-open all font files on startup. Moreover, FreeType 2.2.1 and later contain several speed-ups that might affect performance
positively when opening a lot of font files.

it'd be interesting to know which versions of these libraries you're using.

I'm using the latest available version on Fedora Development:
   fontconfig-2.3.95-4
   freetype-2.2.1-2

this is quite strange, please forward this to the fontconfig mailing list, they must be made aware of the problem.

Hope this helps,

- David


***********************************************************************************
Information contained in this email message is confidential and may be privileged, and is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the postmaster@xxxxxxx and destroy the original message.
***********************************************************************************
--- End Message ---
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig

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

  Powered by Linux