<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>21451</bug_id>
          
          <creation_ts>2008-10-07 15:29:12 -0700</creation_ts>
          <short_desc>tune cMaxInactiveFontData when cleaning old FontData</short_desc>
          <delta_ts>2011-05-05 09:03:43 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Platform</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mike Belshe">mbelshe</reporter>
          <assigned_to name="Dimitri Glazkov (Google)">dglazkov</assigned_to>
          <cc>ddkilzer</cc>
    
    <cc>mitz</cc>
    
    <cc>mjs</cc>
    
    <cc>playmobil</cc>
    
    <cc>slewis</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>94459</commentid>
    <comment_count>0</comment_count>
    <who name="Mike Belshe">mbelshe</who>
    <bug_when>2008-10-07 15:29:12 -0700</bug_when>
    <thetext>When Chromium picked up the latest WebKit; we discovered that our international page cycler test took a ~20% performance hit.  This was due to the FontData cleanup.  The test is a bit brutal, as it intentionally uses more fonts than users are likely to use.

It turns out that tuning cMaxInactiveFontData (FontCache.cpp) from a constant 120 to a constant 256 works around the problem with this test.

I&apos;m hoping that this value is currently somewhat arbitrary, so that nobody objects to this change.  However, I could submit a patch to allow platform-specific tuning of this value if that is preferred.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94461</commentid>
    <comment_count>1</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-10-07 15:56:23 -0700</bug_when>
    <thetext>How much more memory does that amount to? What about other scarce resources used by the cache (GDI handles perhaps)?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94484</commentid>
    <comment_count>2</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2008-10-07 17:52:08 -0700</bug_when>
    <thetext>I&apos;m fine with raising the constant if Dan is.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97874</commentid>
    <comment_count>3</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2008-11-06 13:48:35 -0800</bug_when>
    <thetext>I think an international test of this sort would almost certainly use more fonts than any normal user would, since most people do not browse to pages using many different scripts. I do not think it would be a good tradeoff to use more memory for solely for the benefit of such a benchmark, if we do not think it would help any real browsing scenario.

However, it would help to have data on the increase in memory use from changing this constant.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97875</commentid>
    <comment_count>4</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2008-11-06 13:49:42 -0800</bug_when>
    <thetext>Another useful piece of data would be to determine how many different fonts are loaded in the course of typical browsing for various users.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119631</commentid>
    <comment_count>5</comment_count>
    <who name="Dimitri Glazkov (Google)">dglazkov</who>
    <bug_when>2009-05-01 14:10:05 -0700</bug_when>
    <thetext>I think we&apos;ll roll our fork out and see what difference it makes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>398755</commentid>
    <comment_count>6</comment_count>
    <who name="Dimitri Glazkov (Google)">dglazkov</who>
    <bug_when>2011-05-05 09:03:43 -0700</bug_when>
    <thetext>Obsoleting old bugs.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>