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

Issue 22406005: Index initialization improvements for Simple Cache. (Closed)

Created:
7 years, 4 months ago by gavinp
Modified:
7 years, 4 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org
Visibility:
Public.

Description

Index initialization improvements for Simple Cache. The Simple Cache index initialization path was making far too many allocations, which caused an unneeded early peak in the heap during index initialization. By reserving memory for table resizes and making merges from small sets into big sets, this peak is cut significantly. R=pliard,ttuttle BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216941

Patch Set 1 #

Patch Set 2 : fix minor bahg #

Patch Set 3 : rebase to trunk #

Patch Set 4 : lint #

Patch Set 5 : clean up code some #

Patch Set 6 : margin on resizes, clean up for review #

Patch Set 7 : add unit test, fix windows build. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -17 lines) Patch
M net/disk_cache/simple/simple_index.cc View 1 2 3 4 1 chunk +16 lines, -10 lines 2 comments Download
M net/disk_cache/simple/simple_index_file.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M net/disk_cache/simple/simple_index_file.cc View 1 2 3 4 5 6 3 chunks +11 lines, -4 lines 0 comments Download
M net/disk_cache/simple/simple_index_unittest.cc View 1 2 3 4 5 6 1 chunk +6 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
gavinp
FYI: here's the version that made the -reserve heap on http://ytz.ca/~gavin/heaps This version similar memory ...
7 years, 4 months ago (2013-08-09 20:33:29 UTC) #1
gavinp
This is much closer to what I think we should land here. I'll add a ...
7 years, 4 months ago (2013-08-10 15:35:50 UTC) #2
gavinp
rdsmith, ttuttle: PTAL. This is now ready for review, with the unit test. pliard, digit1: ...
7 years, 4 months ago (2013-08-10 18:18:24 UTC) #3
Philippe
lgtm, thanks Gavin! (yes, I know, I'm on vacation :)) Not related to this CL, ...
7 years, 4 months ago (2013-08-11 09:01:47 UTC) #4
gavinp
On 2013/08/11 09:01:47, Philippe wrote: > lgtm, thanks Gavin! (yes, I know, I'm on vacation ...
7 years, 4 months ago (2013-08-11 17:49:06 UTC) #5
gavinp
I've CQ+ed this. Reviewers, please don't let that stop you from looking over this important ...
7 years, 4 months ago (2013-08-11 17:50:08 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/22406005/48001
7 years, 4 months ago (2013-08-11 17:50:25 UTC) #7
commit-bot: I haz the power
Change committed as 216941
7 years, 4 months ago (2013-08-12 05:50:24 UTC) #8
Randy Smith (Not in Mondays)
LGTM. https://codereview.chromium.org/22406005/diff/48001/net/disk_cache/simple/simple_index.cc File net/disk_cache/simple/simple_index.cc (right): https://codereview.chromium.org/22406005/diff/48001/net/disk_cache/simple/simple_index.cc#newcode369 net/disk_cache/simple/simple_index.cc:369: possibly_inserted_entry->second = it->second; Suggestion: Why not test insert_result.second ...
7 years, 4 months ago (2013-08-12 17:02:19 UTC) #9
gavinp
https://chromiumcodereview.appspot.com/22406005/diff/48001/net/disk_cache/simple/simple_index.cc File net/disk_cache/simple/simple_index.cc (right): https://chromiumcodereview.appspot.com/22406005/diff/48001/net/disk_cache/simple/simple_index.cc#newcode369 net/disk_cache/simple/simple_index.cc:369: possibly_inserted_entry->second = it->second; On 2013/08/12 17:02:20, rdsmith wrote: > ...
7 years, 4 months ago (2013-08-13 11:11:04 UTC) #10
gavinp
I just created Bug 272062 for this.
7 years, 4 months ago (2013-08-13 14:12:08 UTC) #11
gavinp
7 years, 4 months ago (2013-08-13 14:12:24 UTC) #12
Message was sent while issue was closed.
On 2013/08/13 14:12:08, gavinp wrote:
> I just created Bug 272062 for this.

https://code.google.com/p/chromium/issues/detail?id=272062

Powered by Google App Engine
This is Rietveld 408576698