<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi everyone,<div class=""><br class=""></div><div class="">I wanted to check if anyone is noticing performance issues with poppler-based applications after upgrading to fontconfig 2.12.1. I’m seeing a significant hit with programs like diff-pdf when running it with the new version vs. the previously installed one:</div><div class=""><br class=""></div><div class=""><pre style="box-sizing: border-box; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; margin-top: 0px; margin-bottom: 0px; line-height: 1.45; word-wrap: normal; padding: 16px; overflow: auto; background-color: rgb(247, 247, 247); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: normal; color: rgb(51, 51, 51);" class=""><span class="pl-e" style="box-sizing: border-box; color: rgb(121, 93, 163);">doppio:fontconfig_test admin</span>$ <span class="pl-s1" style="box-sizing: border-box;"><span class="pl-k" style="box-sizing: border-box; color: rgb(167, 29, 93);">time</span> diff-pdf to_service4.pdf to_service4.pdf </span>

<span class="pl-mo" style="box-sizing: border-box; color: rgb(29, 62, 129);">real    0m23.053s</span>
<span class="pl-mo" style="box-sizing: border-box; color: rgb(29, 62, 129);">user    0m19.796s</span>
<span class="pl-mo" style="box-sizing: border-box; color: rgb(29, 62, 129);">sys     0m1.581s</span>

<span class="pl-e" style="box-sizing: border-box; color: rgb(121, 93, 163);">doppio:fontconfig_test admin</span>$ <span class="pl-s1" style="box-sizing: border-box;">brew switch fontconfig 2.11.1</span>
<span class="pl-mo" style="box-sizing: border-box; color: rgb(29, 62, 129);">Cleaning /usr/local/Cellar/fontconfig/2.11.1</span>
<span class="pl-mo" style="box-sizing: border-box; color: rgb(29, 62, 129);">Cleaning /usr/local/Cellar/fontconfig/2.12.1</span>
<span class="pl-mo" style="box-sizing: border-box; color: rgb(29, 62, 129);">215 links created for /usr/local/Cellar/fontconfig/2.11.1</span>

<span class="pl-e" style="box-sizing: border-box; color: rgb(121, 93, 163);">doppio:fontconfig_test admin</span>$ <span class="pl-s1" style="box-sizing: border-box;"><span class="pl-k" style="box-sizing: border-box; color: rgb(167, 29, 93);">time</span> diff-pdf to_service4.pdf to_service4.pdf </span>

<span class="pl-mo" style="box-sizing: border-box; color: rgb(29, 62, 129);">real    0m0.218s</span>
<span class="pl-mo" style="box-sizing: border-box; color: rgb(29, 62, 129);">user    0m0.106s</span>
<span class="pl-mo" style="box-sizing: border-box; color: rgb(29, 62, 129);">sys     0m0.064s</span></pre><div class=""><br class=""></div></div><div class=""><br class=""></div><div class="">Also seeing it w/ pdffonts and pdftocairo. The PDF file is a single page 14kb file with five fonts (apologies for the different formatting):</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: 'Meslo LG S DZ'; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: rgb(52, 189, 38);" class=""><b class="">ep@doppio</b></span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(83, 48, 225);" class=""><b class=""> ~/Desktop $</b></span><span style="font-variant-ligatures: no-common-ligatures;" class=""> time  pdffonts edsel_runs/to_service4.pdf</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: 'Meslo LG S DZ'; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">name                                 type              encoding         emb sub uni object ID</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: 'Meslo LG S DZ'; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">------------------------------------ ----------------- ---------------- --- --- --- ---------</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: 'Meslo LG S DZ'; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">DDFLBM+PSOwstdutchb                  Type 1C           Custom           yes yes no       8  0</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: 'Meslo LG S DZ'; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">DDFLCO+PSOsymclas                    Type 1C           Custom           yes yes no      12  0</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: 'Meslo LG S DZ'; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">Helvetica-Bold                       Type 1            Custom           no  no  no       9  0</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: 'Meslo LG S DZ'; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">Helvetica                            Type 1            Custom           no  no  no      10  0</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: 'Meslo LG S DZ'; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">Symbol                               Type 1            Custom           no  no  no      13  0</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: 'Meslo LG S DZ'; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 14px;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""></span><br class=""></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: 'Meslo LG S DZ'; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">real<span class="Apple-tab-span" style="white-space: pre;">    </span>0m20.337s</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: 'Meslo LG S DZ'; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">user<span class="Apple-tab-span" style="white-space: pre;">  </span>0m19.867s</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: 'Meslo LG S DZ'; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">sys<span class="Apple-tab-span" style="white-space: pre;">   </span>0m0.414s</span></div></div><div class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><br class=""></span></div><div class=""><br class=""></div><div class="">I’ve used this file in my test suite for years and it’s always processed in less than a second plus it’s also happening with all other PDFs I have. </div><div class=""><br class=""></div><div class="">(On the other hand, pdftotext and pdftops process it quickly but I presume it’s because they’re not using FreeType to open the embedded fonts or not looking at the fonts at all).</div><div class=""><br class=""></div><div class="">I’m not finding reports of other people having the same problem but, perhaps it’s just something too fresh since home-brew just pushed the updated fontconfig. I don’t mind keeping fontconfig at 2.11.1 but I’d like to file an issue if this is happening to others and also try and track the cause. So far, I’ve tried:</div><div class=""><br class=""></div><div class="">* reinstalled a fresh home-brew to ensure there were no update problems.</div><div class="">* several combinations of clearing & regenerating the font cache (system and user caches) and edits to config files in fontconfig/conf.d/*.</div><div class="">* #if 0’d all freetype calls from my own source and removed freetype library from my makefile's linked lib list.</div><div class=""><br class=""></div><div class="">I’m going to see if I can reproduce the same on a linux box but I might need to build a VM one I can test upgrading fontconfig manually on if there are no updated deb packages made available. I’m also en-route to Berlin for the rest of the week so I might not get to this until next week depending on work.</div><div class=""><br class=""></div><div class="">Could someone confirm if anyone has noticed the same problem? Or if anyone has some insight as to what might be causing this, could you give some suggestions as to where I should look?</div><div class=""><br class=""></div><div class="">Thank you,</div><div class=""><br class=""></div><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">—<br class="">Ed Porras<br class="">Motologic / AAP<br class=""><a href="mailto:ed@motologic.com" class="">ed@motologic.com</a><br class=""></div>
</div>
<br class=""></body></html>