[Webkit-unassigned] [Bug 180979] Web Inspector: Slow Load Time When Connected To Specific iCloud Account

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 2 14:28:19 PST 2018


https://bugs.webkit.org/show_bug.cgi?id=180979

--- Comment #8 from Joseph Pecoraro <joepeck at webkit.org> ---
Created attachment 330336

  --> https://bugs.webkit.org/attachment.cgi?id=330336&action=review

[BENCHMARK] Program that can be used to benchmark and compare font family enumeration implementations

We can improve FontCache::systemFontFamilies. It was implemented using slow functions that were available on both macOS and iOS, but now that both platforms have CTFontManagerCopyAvailableFontFamilyNames it can be implemented in terms of that and be far more efficient.

Attached a test program that compares the before and after implementations.

  # Use CTFontDescriptorCreateMatchingFontDescriptors
  $ ./a.out

  # Use CTFontManagerCopyAvailableFontFamilyNames
  $ ./a.out new

On my system we can go from 379ms to 13ms and find 11 more fonts (and those new values work in a quick test):

> Current Version: 182 fonts
> Time: 378.215668ms
> Time: 380.014587ms
> Time: 377.239014ms
> Time: 382.326111ms
> Average: 379.448845
> 
> New Version: 193 fonts
> Time: 13.489217ms
> Time: 13.597557ms
> Time: 12.925188ms
> Time: 13.309677ms
> Average: 13.33040975
> 
> Difference: (New version finds more, no old values are missing)

Given this was used by Web Inspector only this seems like it would be a big win for opening web inspector.

I'll need to quickly check iOS.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180102/61034f7b/attachment.html>


More information about the webkit-unassigned mailing list