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

Issue 2957133002: Implement in-memory byte hints in SimpleCache (Closed)

Created:
3 years, 5 months ago by Maks Orlovich
Modified:
3 years, 3 months ago
Reviewers:
pasko, gavinp
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement in-memory byte hints in SimpleCache This is done by stealing a byte off the size field in the in-memory index. Dependent on: https://codereview.chromium.org/2958033002/ (and will be updated if the interface there changes). BUG=729679 Review-Url: https://codereview.chromium.org/2957133002 Cr-Commit-Position: refs/heads/master@{#498566} Committed: https://chromium.googlesource.com/chromium/src/+/0f701ce1c09dd85eb1c175aa953f8078b0ce8349

Patch Set 1 #

Patch Set 2 : - Add backwards compat reading test. - Initialize memory_entry_data_, hopefully fixes the Android f… #

Patch Set 3 : Move RoundSize within the #ifdef, so win_clang build doesn't complain about it being unused, with t… #

Total comments: 22

Patch Set 4 : Apply review feedback; change one range check which was silly; rebase. #

Patch Set 5 : Adjust to the interface's naming change. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+215 lines, -55 lines) Patch
M net/disk_cache/backend_unittest.cc View 1 2 3 6 chunks +20 lines, -9 lines 0 comments Download
M net/disk_cache/simple/simple_backend_impl.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M net/disk_cache/simple/simple_backend_impl.cc View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
M net/disk_cache/simple/simple_backend_version.h View 1 chunk +2 lines, -1 line 0 comments Download
M net/disk_cache/simple/simple_index.h View 1 2 3 4 3 chunks +9 lines, -2 lines 0 comments Download
M net/disk_cache/simple/simple_index.cc View 1 2 3 4 5 chunks +42 lines, -11 lines 0 comments Download
M net/disk_cache/simple/simple_index_file.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M net/disk_cache/simple/simple_index_file.cc View 1 2 3 4 2 chunks +5 lines, -3 lines 0 comments Download
M net/disk_cache/simple/simple_index_file_unittest.cc View 1 2 3 4 5 chunks +68 lines, -4 lines 0 comments Download
M net/disk_cache/simple/simple_index_unittest.cc View 1 2 3 4 10 chunks +45 lines, -24 lines 0 comments Download
M net/disk_cache/simple/simple_synchronous_entry.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M net/disk_cache/simple/simple_version_upgrade.cc View 1 chunk +6 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 32 (23 generated)
Maks Orlovich
3 years, 5 months ago (2017-06-28 15:17:26 UTC) #15
pasko
Sorry for inconvenience, but I will be away for a few days and back on ...
3 years, 5 months ago (2017-06-29 16:31:49 UTC) #16
Maks Orlovich
On 2017/06/29 16:31:49, pasko wrote: > Sorry for inconvenience, but I will be away for ...
3 years, 5 months ago (2017-06-29 17:01:58 UTC) #17
gavinp
This change makes me happy. https://codereview.chromium.org/2957133002/diff/40001/net/disk_cache/backend_unittest.cc File net/disk_cache/backend_unittest.cc (right): https://codereview.chromium.org/2957133002/diff/40001/net/disk_cache/backend_unittest.cc#newcode109 net/disk_cache/backend_unittest.cc:109: // The simple backend ...
3 years, 4 months ago (2017-08-04 18:42:54 UTC) #18
Maks Orlovich
https://codereview.chromium.org/2957133002/diff/40001/net/disk_cache/backend_unittest.cc File net/disk_cache/backend_unittest.cc (right): https://codereview.chromium.org/2957133002/diff/40001/net/disk_cache/backend_unittest.cc#newcode109 net/disk_cache/backend_unittest.cc:109: // The simple backend only tracks of approximate size. ...
3 years, 3 months ago (2017-08-23 19:29:06 UTC) #21
gavinp
this change lgtm
3 years, 3 months ago (2017-08-25 17:48:29 UTC) #24
Maks Orlovich
Adjusted some for the naming change in interface (with some local naming changes to match ...
3 years, 3 months ago (2017-08-25 18:55:46 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2957133002/80001
3 years, 3 months ago (2017-08-30 16:53:32 UTC) #28
commit-bot: I haz the power
3 years, 3 months ago (2017-08-30 19:21:45 UTC) #32
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/0f701ce1c09dd85eb1c175aa953f...

Powered by Google App Engine
This is Rietveld 408576698