Comment #4 on issue 25472 by [email protected]: Investigate optimal  
values for HostCache
http://code.google.com/p/chromium/issues/detail?id=25472

The following revision refers to this bug:
     http://src.chromium.org/viewvc/chrome?view=rev&revision=34238

------------------------------------------------------------------------
r34238 | [email protected] | 2009-12-09 23:23:40 -0800 (Wed, 09 Dec 2009)  
| 15 lines
Changed paths:
    M  
http://src.chromium.org/viewvc/chrome/trunk/src/net/base/host_cache.cc?r1=34238&r2=34237
    M  
http://src.chromium.org/viewvc/chrome/trunk/src/net/base/host_cache.h?r1=34238&r2=34237
    M  
http://src.chromium.org/viewvc/chrome/trunk/src/net/base/host_cache_unittest.cc?r1=34238&r2=34237
    M  
http://src.chromium.org/viewvc/chrome/trunk/src/net/base/host_resolver_impl.cc?r1=34238&r2=34237
    M  
http://src.chromium.org/viewvc/chrome/trunk/src/net/base/host_resolver_impl.h?r1=34238&r2=34237
    M  
http://src.chromium.org/viewvc/chrome/trunk/src/net/base/host_resolver_impl_unittest.cc?r1=34238&r2=34237
    M  
http://src.chromium.org/viewvc/chrome/trunk/src/net/base/mock_host_resolver.cc?r1=34238&r2=34237
    M  
http://src.chromium.org/viewvc/chrome/trunk/src/net/tools/hresolv/hresolv.cc?r1=34238&r2=34237
    M  
http://src.chromium.org/viewvc/chrome/trunk/src/net/url_request/url_request_view_net_internals_job.cc?r1=34238&r2=34237

Cache failed DNS resolutions for 1 second.

This is a very small time to live, since we want to be able to respond  
quickly when formerly unresolvable names become resolvable.

Even such a small time is still useful, since cache misses for unresolvable  
names can be extremely costly (order of several seconds).

For example, in our corp PAC script, the URL's host is resolved 3 times, so:
   Without caching, total runtime is (2.5 seconds) * 3 --> 7.5 seconds.
   Whereas with caching it would be: (2.5 seconds) * 1 --> 2.5 seconds

This time to live will need to be tuned as part of bug 25472.

BUG=11079

Review URL: http://codereview.chromium.org/464084
------------------------------------------------------------------------


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

-- 
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs

Reply via email to