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

Issue 2409103003: LRUDict: add timestamps (Closed)

Created:
4 years, 2 months ago by nodir
Modified:
4 years, 2 months 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

LRUDict: add timestamps lru.LRUDict currently stores the order of items, but not time when an item was used most recently. Add timestamps to LRUDict internal representation and update persistence format. Preserve ability to load a dict from the old format for backward compatibility. Also remove lru.LRUDict.batch_insert_oldest because it complicates this CL. It wasn't used. R=maruel@chromium.org BUG=654562 Committed: https://github.com/luci/luci-py/commit/c40ca4d446515a4a97cdfac59a6aa3a1e3b0a781

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -64 lines) Patch
M client/isolateserver.py View 1 chunk +2 lines, -2 lines 0 comments Download
M client/tests/isolateserver_test.py View 1 2 3 chunks +7 lines, -4 lines 0 comments Download
M client/tests/lru_test.py View 1 3 chunks +31 lines, -8 lines 0 comments Download
M client/utils/lru.py View 1 7 chunks +77 lines, -50 lines 0 comments Download

Messages

Total messages: 19 (8 generated)
nodir
PTAL
4 years, 2 months ago (2016-10-12 06:09:53 UTC) #1
M-A Ruel
https://codereview.chromium.org/2409103003/diff/20001/client/utils/lru.py File client/utils/lru.py (right): https://codereview.chromium.org/2409103003/diff/20001/client/utils/lru.py#newcode16 client/utils/lru.py:16: (key, (value, timestamp)) pairs in order they are I ...
4 years, 2 months ago (2016-10-12 19:47:10 UTC) #2
nodir
indeed
4 years, 2 months ago (2016-10-12 20:33:31 UTC) #3
nodir
I've writing a CL where I introduce named_cache.CacheManager classes that manages named cache. I need ...
4 years, 2 months ago (2016-10-13 19:35:09 UTC) #4
nodir
On 2016/10/13 19:35:09, nodir wrote: > I've writing a CL where I introduce named_cache.CacheManager classes ...
4 years, 2 months ago (2016-10-17 18:09:11 UTC) #6
M-A Ruel
lgtm
4 years, 2 months ago (2016-10-18 00:43:51 UTC) #7
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/2409103003/20001
4 years, 2 months ago (2016-10-18 22:34:20 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: Luci-py Presubmit on luci.infra.try (JOB_FAILED, https://luci-milo.appspot.com/swarming/task/31f2c22f63a84810)
4 years, 2 months ago (2016-10-18 22:39:11 UTC) #11
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/2409103003/40001
4 years, 2 months ago (2016-10-18 23:04:34 UTC) #14
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/2409103003/40001
4 years, 2 months ago (2016-10-18 23:26:35 UTC) #17
commit-bot: I haz the power
4 years, 2 months ago (2016-10-18 23:37:31 UTC) #19
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://github.com/luci/luci-py/commit/c40ca4d446515a4a97cdfac59a6aa3a1e3b0a781

Powered by Google App Engine
This is Rietveld 408576698