[Fontconfig-bugs] [Bug 103291] New: noto-cjk takes 12 seconds to parse

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Oct 16 11:01:50 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=103291

            Bug ID: 103291
           Summary: noto-cjk takes 12 seconds to parse
           Product: fontconfig
           Version: 2.12
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: library
          Assignee: fontconfig-bugs at lists.freedesktop.org
          Reporter: prahal at yahoo.com
        QA Contact: freedesktop at behdad.org

With https://tracker.debian.org/pkg/fonts-noto-cjk version 1:20170601+repack1-1
installed fontconfig takes more than 15 seconds to parse the fonts. If I remove
this fonts, it is down to less than 3 seconds.
This with fontconfig from fc-2-12 branch commit
73c45cde5f9a7cfe1bdbb509e23ee487849a36bb installed. As far as I can tell it was
even worst with stock debian 2.12.3-0.2 fontconfig so the latest speedup plays.


Could it be an issue with the fonts ? Or is it so heavy ?

Here is an extract with timestamp when fontconfig loads the noto-cjk fonts and
they take around 12 seconds.

[pid     5] 22:32:47.128325
open("/usr/share/fonts/opentype/mathjax/MathJax_SansSerif-Italic.otf",
O_RDONLY) = 5
[pid     5] 22:32:47.129141
open("/usr/share/fonts/opentype/mathjax/MathJax_SansSerif-Regular.otf",
O_RDONLY) = 5
[pid     5] 22:32:47.129908
open("/usr/share/fonts/opentype/mathjax/MathJax_Script-Regular.otf", O_RDONLY)
= 5
[pid     5] 22:32:47.131386
open("/usr/share/fonts/opentype/mathjax/MathJax_Size1-Regular.otf", O_RDONLY) =
5
[pid     5] 22:32:47.133549
open("/usr/share/fonts/opentype/mathjax/MathJax_Size2-Regular.otf", O_RDONLY) =
5
[pid     5] 22:32:47.134553
open("/usr/share/fonts/opentype/mathjax/MathJax_Size3-Regular.otf", O_RDONLY) =
5
[pid     5] 22:32:47.134903
open("/usr/share/fonts/opentype/mathjax/MathJax_Size4-Regular.otf", O_RDONLY) =
5
[pid     5] 22:32:47.135480
open("/usr/share/fonts/opentype/mathjax/MathJax_Typewriter-Regular.otf",
O_RDONLY) = 5
[pid     5] 22:32:47.136571
open("/usr/share/fonts/opentype/mathjax/MathJax_WinChrome-Regular.otf",
O_RDONLY) = 5
[pid     5] 22:32:47.136882
open("/usr/share/fonts/opentype/mathjax/MathJax_WinIE6-Regular.otf", O_RDONLY)
= 5
[pid     5] 22:32:47.138185 open("/usr/share/fonts/opentype/noto",
O_RDONLY|O_CLOEXEC) = 4
[pid     5] 22:32:47.138240
open("/var/cache/fontconfig//9b89f8e3dae116d678bbf48e5f21f69b-le64.cache-7",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid     5] 22:32:47.138285 open("/usr/share/fonts/opentype/noto",
O_RDONLY|O_CLOEXEC) = 4
[pid     5] 22:32:47.138334
open("/var/cache/fontconfig//9b89f8e3dae116d678bbf48e5f21f69b-le64.cache-7",
O_RDWR|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid     5] 22:32:47.138376 open("/usr/share/fonts/opentype/noto",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
[pid     5] 22:32:47.138469
open("/usr/share/fonts/opentype/noto/NotoSansCJK-Bold.ttc", O_RDONLY) = 5
[pid     5] 22:32:47.631544
open("/usr/share/fonts/opentype/noto/NotoSansCJK-Bold.ttc", O_RDONLY) = 5
[pid     5] 22:32:48.129769
open("/usr/share/fonts/opentype/noto/NotoSansCJK-Bold.ttc", O_RDONLY) = 5
[pid     5] 22:32:48.614434
open("/usr/share/fonts/opentype/noto/NotoSansCJK-Bold.ttc", O_RDONLY) = 5
[pid     5] 22:32:49.115903
open("/usr/share/fonts/opentype/noto/NotoSansCJK-Bold.ttc", O_RDONLY) = 5
[pid     5] 22:32:49.611338
open("/usr/share/fonts/opentype/noto/NotoSansCJK-Bold.ttc", O_RDONLY) = 5
[pid     5] 22:32:50.105648
open("/usr/share/fonts/opentype/noto/NotoSansCJK-Bold.ttc", O_RDONLY) = 5
[pid     5] 22:32:50.597658
open("/usr/share/fonts/opentype/noto/NotoSansCJK-Bold.ttc", O_RDONLY) = 5
[pid     5] 22:32:51.087194
open("/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc", O_RDONLY) = 5
[pid     5] 22:32:51.558310
open("/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc", O_RDONLY) = 5
[pid     5] 22:32:52.033531
open("/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc", O_RDONLY) = 5
[pid     5] 22:32:52.506089
open("/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc", O_RDONLY) = 5
[pid     5] 22:32:52.974375
open("/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc", O_RDONLY) = 5
[pid     5] 22:32:53.445133
open("/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc", O_RDONLY) = 5
[pid     5] 22:32:53.922897
open("/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc", O_RDONLY) = 5
[pid     5] 22:32:54.393266
open("/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc", O_RDONLY) = 5
[pid     5] 22:32:54.867025
open("/usr/share/fonts/opentype/noto/NotoSerifCJK-Bold.ttc", O_RDONLY) = 5
[pid     5] 22:32:55.599336
open("/usr/share/fonts/opentype/noto/NotoSerifCJK-Bold.ttc", O_RDONLY) = 5
[pid     5] 22:32:56.332699
open("/usr/share/fonts/opentype/noto/NotoSerifCJK-Bold.ttc", O_RDONLY) = 5
[pid     5] 22:32:57.064652
open("/usr/share/fonts/opentype/noto/NotoSerifCJK-Bold.ttc", O_RDONLY) = 5
[pid     5] 22:32:57.798153
open("/usr/share/fonts/opentype/noto/NotoSerifCJK-Regular.ttc", O_RDONLY) = 5
[pid     5] 22:32:58.526373
open("/usr/share/fonts/opentype/noto/NotoSerifCJK-Regular.ttc", O_RDONLY) = 5
[pid     5] 22:32:59.246956
open("/usr/share/fonts/opentype/noto/NotoSerifCJK-Regular.ttc", O_RDONLY) = 5
evince-thumbnailer couldn't process file:
'file:///tmp/gnome-desktop-file-to-thumbnail.pdf'
Reason: Took too much time to process.
[pid     6] 22:32:59.557353 +++ exited with 0 +++
22:32:59.559397 +++ exited with 0 +++



This with nautilus calling evince-thumbnailer (in Gnome 3.26 this triggers in
Bubblewrap sandboxing thus no cache is available).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/fontconfig-bugs/attachments/20171016/ccfc3391/attachment.html>


More information about the Fontconfig-bugs mailing list