Summary: | noto-cjk takes 12 seconds to parse | ||
---|---|---|---|
Product: | fontconfig | Reporter: | Alban Browaeys <prahal> |
Component: | library | Assignee: | fontconfig-bugs |
Status: | RESOLVED DUPLICATE | QA Contact: | Behdad Esfahbod <freedesktop> |
Severity: | normal | ||
Priority: | medium | CC: | akira, freedesktop |
Version: | 2.12 | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Alban Browaeys
2017-10-16 11:01:50 UTC
The sort of this issue has been already improved in master but no plans to release it yet. what I can tell you at this moment is, when you install/update a font, you should run fc-cache in a timely manner, to avoid taking a time to update a cache in the runtime. *** This bug has been marked as a duplicate of bug 64766 *** Confirmed fixed with master branch. Sorry I thought the fix was also in fc-2-12 branch per the latter was tagged 2.12.6 while master was still 2.12.5. I am down to 3 seconds for the full set and thumbnail with noto-cjk ! that is the maintenance release branch of 2.12 and I'm not planning to push any drastic changes there. I initially ain't planning to maintain multiple branches though, can't made a release from master soon so made a branch from 2.12.5, but anyway. (In reply to Alban Browaeys from comment #2) > Confirmed fixed with master branch. > Sorry I thought the fix was also in fc-2-12 branch per the latter was tagged > 2.12.6 while master was still 2.12.5. > I am down to 3 seconds for the full set and thumbnail with noto-cjk ! No idea what thumbnail is about, but with master, I get 0.1s for NotoSansCJK.ttc, ie the super OTC. I have to admit the numbers are with strace wrapping evince-thumbnailer which slows down the process quite a lot. With the master branch 3 seconds under strace v more than 15 seconds with or without strace for 2.12 one ! Mind that Gnome do run the thumbnailers in a Bubblewrap sandbox (thus no fontconfig cache as /var is not bind mounted). So did I in my tests to nail down why evince-thumbnailer failed on me. (In reply to Alban Browaeys from comment #5) > I have to admit the numbers are with strace wrapping evince-thumbnailer > which slows down the process quite a lot. > With the master branch 3 seconds under strace v more than 15 seconds with or > without strace for 2.12 one ! > Mind that Gnome do run the thumbnailers in a Bubblewrap sandbox (thus no > fontconfig cache as /var is not bind mounted). > So did I in my tests to nail down why evince-thumbnailer failed on me. That sounds bad... Does the flatpak effort with fontconfig cache sharing also address bubblewrap usecase? (In reply to Behdad Esfahbod from comment #6) > That sounds bad... Does the flatpak effort with fontconfig cache sharing > also address bubblewrap usecase? If no bind-mounted cache dirs is there on the sandbox, that effort won't even help because you know fontconfig will *always* create a cache at the startup time right. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.