Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Issue 11415222: Http cache: fix a bug that prevented the infinite cache simulation from saving (Closed)

Created:
8 years ago by rvargas (doing something else)
Modified:
8 years ago
Reviewers:
tburkard
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Http cache: fix a bug that prevented the infinite cache simulation from saving large data sets. Also, go back to a limit of 200k entries, to monitor things, and increase the version number to have clean stats after this change. BUG=147383 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170548

Patch Set 1 #

Patch Set 2 : #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -5 lines) Patch
M net/http/infinite_cache.cc View 1 6 chunks +7 lines, -5 lines 2 comments Download
M net/http/infinite_cache_unittest.cc View 2 chunks +29 lines, -0 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
rvargas (doing something else)
8 years ago (2012-11-30 03:58:47 UTC) #1
tburkard
lgtm https://codereview.chromium.org/11415222/diff/5001/net/http/infinite_cache.cc File net/http/infinite_cache.cc (right): https://codereview.chromium.org/11415222/diff/5001/net/http/infinite_cache.cc#newcode88 net/http/infinite_cache.cc:88: int kMaxNumEntries = 200 * 1000; Why reduce ...
8 years ago (2012-11-30 19:00:54 UTC) #2
rvargas (doing something else)
8 years ago (2012-11-30 19:12:23 UTC) #3
Thanks.

https://codereview.chromium.org/11415222/diff/5001/net/http/infinite_cache.cc
File net/http/infinite_cache.cc (right):

https://codereview.chromium.org/11415222/diff/5001/net/http/infinite_cache.cc...
net/http/infinite_cache.cc:88: int kMaxNumEntries = 200 * 1000;
On 2012/11/30 19:00:54, tburkard wrote:
> Why reduce the size?

When I increased the size I was under the assumption that people were free to
reach the limit... knowing that most people have not really had a chance of
getting more than 100k entries means that we should be cautious again and see if
problems arise.

https://codereview.chromium.org/11415222/diff/5001/net/http/infinite_cache_un...
File net/http/infinite_cache_unittest.cc (right):

https://codereview.chromium.org/11415222/diff/5001/net/http/infinite_cache_un...
net/http/infinite_cache_unittest.cc:250: #if 0
On 2012/11/30 19:00:54, tburkard wrote:
> How about not using #if 0, but making it Disabled, so that one can still run
it
> manually if needed?

I don't care that much either way, but we have regular cycles of "what are we
doing with disabled tests, we should delete them or fix them" (which is 100%
valid concern) so I wanted to be explicit about this being intentional and not a
bug (plus less noise for everybody with "you have n disabled tests"). Running it
is a matter of removing two lines and a few seconds recompiling.

Sounds reasonable?

Powered by Google App Engine
This is Rietveld 408576698