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

Issue 1515243003: MRUCacheBase - Added Swap method to exchange contents of two MRUCache (Closed)

Created:
5 years ago by ramant (doing other things)
Modified:
5 years ago
Reviewers:
Lei Zhang, brettw, Nico
CC:
chromium-reviews, vmpstr+watch_chromium.org, Ryan Hamilton
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MRUCacheBase - Added Swap method to exchange contents of two MRUCache objects. BUG=568386 (comment#10) R=brettw@chromium.org,thakis@chromium.org Committed: https://crrev.com/105685d9418165b9bb997a5ea3f9e9527097ada5 Cr-Commit-Position: refs/heads/master@{#366000}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : Fix comments for Patch Set 1 #

Total comments: 2

Patch Set 3 : include <algorithm> - comments Patch Set 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -0 lines) Patch
M base/containers/mru_cache.h View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M base/containers/mru_cache_unittest.cc View 1 chunk +104 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 26 (13 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1515243003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1515243003/1
5 years ago (2015-12-12 00:39:03 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1515243003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1515243003/20001
5 years ago (2015-12-12 00:43:05 UTC) #7
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) ...
5 years ago (2015-12-12 02:50:52 UTC) #9
ramant (doing other things)
Hi Brett and Nico, In the following CL, used Swap method to maintain the recency ...
5 years ago (2015-12-14 23:10:02 UTC) #12
Bence
raman: I would naively think that Swap is slower. With PutBack, we could just put ...
5 years ago (2015-12-17 18:36:34 UTC) #14
Lei Zhang
https://codereview.chromium.org/1515243003/diff/20001/base/containers/mru_cache.h File base/containers/mru_cache.h (right): https://codereview.chromium.org/1515243003/diff/20001/base/containers/mru_cache.h#newcode145 base/containers/mru_cache.h:145: DeletorType temp_deletor(other.deletor_); Does std::swap() work here and below on ...
5 years ago (2015-12-17 23:43:23 UTC) #15
ramant (doing other things)
On 2015/12/17 18:36:34, Bence on leave til 2016 Jan 04 wrote: > raman: I would ...
5 years ago (2015-12-18 00:09:02 UTC) #16
ramant (doing other things)
Thanks very much Lei Zhang. Made the changes. PTAL. https://codereview.chromium.org/1515243003/diff/20001/base/containers/mru_cache.h File base/containers/mru_cache.h (right): https://codereview.chromium.org/1515243003/diff/20001/base/containers/mru_cache.h#newcode145 base/containers/mru_cache.h:145: ...
5 years ago (2015-12-18 00:32:51 UTC) #17
Lei Zhang
lgtm https://codereview.chromium.org/1515243003/diff/40001/base/containers/mru_cache.h File base/containers/mru_cache.h (right): https://codereview.chromium.org/1515243003/diff/40001/base/containers/mru_cache.h#newcode144 base/containers/mru_cache.h:144: std::swap(deletor_, other.deletor_); IWYU -> #include <algorithm>
5 years ago (2015-12-18 00:36:19 UTC) #18
ramant (doing other things)
https://codereview.chromium.org/1515243003/diff/40001/base/containers/mru_cache.h File base/containers/mru_cache.h (right): https://codereview.chromium.org/1515243003/diff/40001/base/containers/mru_cache.h#newcode144 base/containers/mru_cache.h:144: std::swap(deletor_, other.deletor_); On 2015/12/18 00:36:19, Lei Zhang wrote: > ...
5 years ago (2015-12-18 01:43:46 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1515243003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1515243003/60001
5 years ago (2015-12-18 01:44:06 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:60001)
5 years ago (2015-12-18 03:05:57 UTC) #24
commit-bot: I haz the power
5 years ago (2015-12-18 03:06:48 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/105685d9418165b9bb997a5ea3f9e9527097ada5
Cr-Commit-Position: refs/heads/master@{#366000}

Powered by Google App Engine
This is Rietveld 408576698