<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - noto-cjk takes 12 seconds to parse"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=103291">103291</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>noto-cjk takes 12 seconds to parse
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>fontconfig
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>2.12
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>library
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>fontconfig-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>prahal@yahoo.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>freedesktop@behdad.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>With <a href="https://tracker.debian.org/pkg/fonts-noto-cjk">https://tracker.debian.org/pkg/fonts-noto-cjk</a> 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).</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>