Each font load reloads the native font database (slow on OSX 10.6) #10488
Comments
adam.freidin@gmail.com commented:
|
adam.freidin@gmail.com commented:
|
Problem still alive here. fontd in Mac takes 100% cpu when enough phantomjs processes run. |
I'm also witnessing this. PhantomJS 1.9.7 |
A bit more information: We use Typekit for our fonts in our app. If I don't load the Typekit fonts, the test suite runs 7X faster. All of the Typekit fonts are cached using VCR so it isn't network. When I load the fonts, |
Glad to see this is getting attention 2 years later. My original concern was not that font loading was slow but that the fonts were being loaded into the database and then the database/font mapping was being refreshed, at all. I believe this broke a font I was trying to load which wasn't properly identified (as in whatever the font database is keyed with, this font lacked the metadata). I had no way to confirm this diagnosis, but I found this font worked in other browsers (including webkit-based browsers_ but not phantomjs. TL;DR; This was always secondary concern intended to provide a motivation to bypass the database for font loading, as I believe that bypassing the database would improve both correctness and speed. |
I'm also having this problem with PhantomJS 1.9.7 and Typekit. Without Typekit our specs run in about 5 minutes, with Typekit they take 23 minutes. We tried capybara-webkit and had a similar problem. It doesn't happen using selenium with Firefox, but obviously we'd rather run headless. |
👍 I'm also seeing this issue on PhantomJS 1.9.7 when loading a page that uses Typekit. Mac OS 10.8.5. Edit Just upgraded to 1.9.8, problem still occurs. The time cost of using Typekit to load three fonts is about 8 seconds for a single page load. |
Just confirmed that this issue still exists on PhantomJS 1.9.8 on Mac OS "Yosemite" 10.10.1. |
Seeing this issue as well. PhantomJS 1.9.7.0 on OSX 10.9.5. |
Confirmed still an issue on OSX 10.11 |
Not really a fix, but a workaround I use is as follows (i.e. don't load Typekit during automated tests): - unless Rails.env.test? # Typekit slows down phantomjs https://github.com/ariya/phantomjs/issues/10488
= javascript_include_tag "//use.typekit.net/ppd2bsh.js"
:javascript
try{Typekit.load();}catch(e){} |
Could someone try again with 2.5 binary? Thanks! |
Due to our very limited maintenance capacity (see #14541 for more details), we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed. In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution! |
adam.freidin@gmail.com commented:
Disclaimer:
This issue was migrated on 2013-03-15 from the project's former issue tracker on Google Code, Issue #488.
🌟 4 people had starred this issue at the time of migration.
The text was updated successfully, but these errors were encountered: