Chromium Code Reviews
DescriptionLRUDict: 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 #
Messages
Total messages: 19 (8 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||