Opened 8 years ago

Closed 8 years ago

#52088 closed defect (fixed)

fc-list unacceptably slow in fontconfig 2.12.1

Reported by: giles@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: mojca (Mojca Miklavec), rcobbe, ken@…, mf2k (Frank Schima), kickingvegas (Charles Choi), devernay (Frédéric Devernay), cjones051073 (Chris Jones)
Port: fontconfig

Description (last modified by mf2k (Frank Schima))

SUMMARY
fc-list takes 30 seconds on 2.12.1, almost instantaneous on 2.12.0. Causes font look ups when launching terminal etc to slow down to an unusable level.

REPRODUCE
Run

time fc-list Inconsolata with 2.12.1 installed:

/Users/grc/.fonts/Inconsolata.otf: Inconsolata:style=Medium
fc-list Inconsolata  30.74s user 0.71s system 98% cpu 31.805 total

Identical command with 2.12.0 installed:

/Users/grc/.fonts/Inconsolata.otf: Inconsolata:style=Medium
fc-list Inconsolata  0.01s user 0.01s system 65% cpu 0.020 total

Similar results for other fonts, or non-existent fonts.

Change History (18)

comment:1 Changed 8 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to ryandesign@…

In the future, please use WikiFormatting and Cc the port maintainers (port info --maintainers fontconfig), if any.

comment:2 Changed 8 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:3 Changed 8 years ago by mojca (Mojca Miklavec)

Cc: mojca@… added

Cc Me!

comment:4 Changed 8 years ago by rcobbe

Cc: cobbe@… added

Cc Me!

comment:5 Changed 8 years ago by ken@…

Cc: ken@… added

Cc Me!

comment:6 Changed 8 years ago by ken@…

I was asked to document a similar problem a few of us have been seeing. Ports that depend on fontconfig take ~30s to start with the latest version. It may be the same root cause.

#52099

Last edited 8 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:7 Changed 8 years ago by kickingvegas (Charles Choi)

Seeing the same thing. Impacts usage of matplotlib in python and ImageMagick.

Last edited 8 years ago by kickingvegas (Charles Choi) (previous) (diff)

comment:8 Changed 8 years ago by mf2k (Frank Schima)

Cc: mf2k@… added

Cc Me!

comment:9 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Does somebody have time to report this to the developers of fontconfig please?

comment:10 Changed 8 years ago by kickingvegas (Charles Choi)

Cc: charles.choi@… added

Cc Me!

comment:11 in reply to:  9 ; Changed 8 years ago by kickingvegas (Charles Choi)

Replying to ryandesign@…:

Does somebody have time to report this to the developers of fontconfig please?

Have posted to fontconfig mailing list.

https://lists.freedesktop.org/archives/fontconfig/2016-August/005810.html

comment:12 in reply to:  11 Changed 8 years ago by kickingvegas (Charles Choi)

Replying to charles.choi@…:

Replying to ryandesign@…:

Does somebody have time to report this to the developers of fontconfig please?

Have posted to fontconfig mailing list.

https://lists.freedesktop.org/archives/fontconfig/2016-August/005810.html

Got some feedback. https://lists.freedesktop.org/archives/fontconfig/2016-August/005811.html

comment:14 Changed 8 years ago by devernay (Frédéric Devernay)

Cc: frederic.devernay@… added

Cc Me!

comment:15 Changed 8 years ago by cjones051073 (Chris Jones)

Cc: jonesc@… added

Cc Me!

comment:16 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Please check whether fontconfig @2.12.1_1 (r152719) has fixed this problem.

comment:17 in reply to:  16 Changed 8 years ago by giles@…

Replying to ryandesign@…:

Please check whether fontconfig @2.12.1_1 (r152719) has fixed this problem.

That fixes it for me: fc-list using 2.12.1_1 takes a similar time, near instantaneous, to 2.12.0_0

comment:18 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.