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

Issue 2414543003: isolateserver: DiskCache format v2 (Closed)

Created:
4 years, 2 months ago by nodir
Modified:
4 years, 1 month ago
Reviewers:
M-A Ruel
CC:
chromium-reviews, infra-reviews+luci-py_chromium.org
Target Ref:
refs/heads/master
Project:
luci-py
Visibility:
Public.

Description

isolateserver: DiskCache format v2 - change DiskCache._lru from {digest:size} to {digest:[size, timestamp]} - change DiskCache's item file names from "<digest>" to "<digest[:2]>/<digest[2:]>" - introduce VERSION file. On saving, write "2". On loading, delete cache dir if it is different from "2". R=maruel@chromium.org BUG=654562

Patch Set 1 #

Patch Set 2 : nits #

Patch Set 3 : make code more explicit #

Patch Set 4 : docs #

Total comments: 3

Patch Set 5 : remove lru.LRUDict #

Patch Set 6 : typo and nit #

Total comments: 11
Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -459 lines) Patch
M client/isolateserver.py View 1 2 3 4 5 15 chunks +158 lines, -57 lines 11 comments Download
M client/tests/isolateserver_test.py View 1 2 3 4 5 chunks +36 lines, -11 lines 0 comments Download
D client/tests/lru_test.py View 1 2 3 4 1 chunk +0 lines, -229 lines 0 comments Download
D client/utils/lru.py View 1 2 3 4 1 chunk +0 lines, -162 lines 0 comments Download

Messages

Total messages: 20 (15 generated)
nodir
PTAL
4 years, 2 months ago (2016-10-12 22:53:40 UTC) #3
M-A Ruel
https://codereview.chromium.org/2414543003/diff/60001/client/isolateserver.py File client/isolateserver.py (left): https://codereview.chromium.org/2414543003/diff/60001/client/isolateserver.py#oldcode1621 client/isolateserver.py:1621: self._lru.touch(digest) Please remove the touch method from LRUDict to ...
4 years, 2 months ago (2016-10-13 02:19:37 UTC) #8
nodir
I've deleted lru.LRUDict in patchset 5 and now all IO is in the DiskCache. This ...
4 years, 2 months ago (2016-10-13 19:32:42 UTC) #16
M-A Ruel
https://codereview.chromium.org/2414543003/diff/120001/client/isolateserver.py File client/isolateserver.py (right): https://codereview.chromium.org/2414543003/diff/120001/client/isolateserver.py#newcode1589 client/isolateserver.py:1589: previous = set(self._lru) self.cached_set() ? just for the form. ...
4 years, 2 months ago (2016-10-13 20:51:13 UTC) #19
nodir
4 years, 2 months ago (2016-10-13 21:28:23 UTC) #20
On 2016/10/13 19:32:42, nodir wrote:
> I've deleted lru.LRUDict in patchset 5 and now all IO is in the DiskCache.
This
> looks clean, but...
> 
> for named_cache.CacheManager (new thing), I need an ordered dict with
timestamps
> that can saved to/loaded from a file... which brings me back to
> https://codereview.chromium.org/2409103003/

WDYT about this?

Powered by Google App Engine
This is Rietveld 408576698