[Bug 1590804] Re: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/
** Changed in: fontconfig (Ubuntu) Importance: Undecided => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1590804 Title: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/ To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1590804/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1590804] Re: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/
** Changed in: canonical-devices-system-image Milestone: 13 => backlog -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1590804 Title: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/ To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1590804/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1590804] Re: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/
** Changed in: canonical-devices-system-image Importance: High => Low -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1590804 Title: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/ To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1590804/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1590804] Re: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: fontconfig (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1590804 Title: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/ To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1590804/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1590804] Re: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/
Also FcInitReinitialize and FcInitBringUptoDate both will do the same thing the first time is called in the process, so wouldn't help for startup either. ** Changed in: qtbase-opensource-src (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1590804 Title: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/ To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1590804/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1590804] Re: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/
So actually, fontconfig does not cache conf files at all... it caches fonts but not conf files... fontconfg needs support to also cache the result of the parsing of the xml config file parsing. It seems a low priority effort for less than a 35ms improvement in startup. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1590804 Title: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/ To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1590804/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1590804] Re: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/
** Changed in: canonical-devices-system-image Status: New => In Progress ** Changed in: canonical-devices-system-image Milestone: backlog => 13 ** Also affects: qtbase-opensource-src (Ubuntu) Importance: Undecided Status: New ** Changed in: qtbase-opensource-src (Ubuntu) Assignee: (unassigned) => Alberto Aguirre (albaguirre) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1590804 Title: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/ To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1590804/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1590804] Re: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/
>From the attached backtrace, It seems that Qt calls FcInitReinitialize when populating its font database (a QGenericUnixFontDatabase instance provided by Qtubuntu) - that explains why re-parses the conf files everytime. See http://code.qt.io/cgit/qt/qtbase.git/tree/src/platformsupport/fontdatabases/fontconfig/qfontconfigdatabase.cpp?h=v5.4.1#n439 ** Attachment added: "backtrace.txt" https://bugs.launchpad.net/ubuntu/+source/fontconfig/+bug/1590804/+attachment/4689148/+files/backtrace.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1590804 Title: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/ To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1590804/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1590804] Re: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/
I tried fc-cache, but starting a qml app still continues to open up the conf files. Digging through Qt source to understand where these calls are coming from. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1590804 Title: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/ To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1590804/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1590804] Re: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/
On 2016-06-14 20:41, Florian Boucault wrote: > The output of strace shows that fontconfig opens those file during > every QML application startup. > > A solution to this would be to introduce a caching system: after > fontconfig opens and parses those files the first time it could > serialize the result to disk for subsequent starts. >From "man fc-cache": fc-cache scans the font directories on the system and builds font information cache files for applications using fontconfig for their font handling. If directory arguments are not given, fc-cache uses each directory in the current font configuration. Each directory is scanned for font files readable by FreeType. A cache is created which contains properties of each font and the associated filename. This cache is used to speed up application startup when using the fontconfig library. Maybe there is a simple solution available. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1590804 Title: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/ To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1590804/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1590804] Re: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/
For a given user only a subset of these fonts are used, so this could probably be mitigated by installing fonts on demand with the language (reported in bug 1577369) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1590804 Title: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/ To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1590804/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1590804] Re: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/
The output of strace shows that fontconfig opens those file during every QML application startup. A solution to this would be to introduce a caching system: after fontconfig opens and parses those files the first time it could serialize the result to disk for subsequent starts. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1590804 Title: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/ To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1590804/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1590804] Re: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/
Hmm.. fontconfig must parse those XML files at startup to do its job. While you indicate that it happens at startup of QML apps, my belief was that it happens already at login. It may well be possible to reduce the number of fontconfig config files, but that would be a large project, where you'd need to make sure fore every single language that the rendering isn't changed adversely. AFAIK, the fontconfig and fonts-* packages currently used in Ubuntu touch are the same as on the desktop. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1590804 Title: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/ To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1590804/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1590804] Re: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/
For information, output of strace related to that: open("/etc/fonts/conf.d/10-antialias.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/10-hinting-slight.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/10-hinting.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/11-lcdfilter-default.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/20-unhint-small-dejavu-lgc-sans-mono.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/20-unhint-small-dejavu-lgc-sans.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/20-unhint-small-dejavu-lgc-serif.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/20-unhint-small-dejavu-sans-mono.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/20-unhint-small-dejavu-sans.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/20-unhint-small-dejavu-serif.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/20-unhint-small-vera.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/30-metric-aliases.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/30-urw-aliases.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/40-nonlatin.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/45-latin.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/49-sansserif.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/50-user.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/51-local.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/local.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 26 open("/etc/fonts/conf.d/57-dejavu-sans-mono.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/57-dejavu-sans.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/57-dejavu-serif.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/58-dejavu-lgc-sans-mono.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/58-dejavu-lgc-sans.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/58-dejavu-lgc-serif.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/60-latin.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/64-01-tlwg-kinnari.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/65-droid-sans-fallback.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/65-fonts-persian.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/65-fonts-takao-pgothic.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/65-nonlatin.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/65-wqy-microhei.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/66-lohit-devanagari.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/66-lohit-punjabi.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/69-unifont.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/70-no-bitmaps.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/80-delicious.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/89-tlwg-kinnari-synthetic.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/90-fonts-nanum.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 open("/etc/fonts/conf.d/90-synthetic.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 25 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1590804 Title: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/ To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1590804/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1590804] Re: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/
** Tags added: performance -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1590804 Title: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/ To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1590804/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1590804] Re: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/
** Changed in: canonical-devices-system-image Assignee: (unassigned) => kevin gunn (kgunn72) ** Changed in: canonical-devices-system-image Milestone: None => backlog ** Changed in: canonical-devices-system-image Importance: Undecided => High -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1590804 Title: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/ To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1590804/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1590804] Re: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/
** Also affects: canonical-devices-system-image Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1590804 Title: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/ To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1590804/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs