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

Issue 1420433009: cc: Keep most recently used resources at the front of resource queue. (Closed)

Created:
5 years, 1 month ago by prashant.n
Modified:
5 years, 1 month ago
Reviewers:
danakj, reveman, vmpstr, ericrk
CC:
cc-bugs_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Keep most recently used resources at the front of resource queue. Finding resources in |unused_resources_| from MRU to LRU touches LRU resources only if needed, which inreases possibility of expiring more LRU resources within kResourceExpirationDelayMs. BUG= CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/f5618420f5dc8484d15a5388b45d60011d0d0474 Cr-Commit-Position: refs/heads/master@{#357557}

Patch Set 1 #

Patch Set 2 : Splitting moving of resource finding logic to separate patch. #

Patch Set 3 : Fixed compilation error. #

Patch Set 4 : Corrected implementation. #

Total comments: 8

Patch Set 5 : Review comments. #

Total comments: 5

Patch Set 6 : Changed order of mru <-> lru. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -10 lines) Patch
M cc/resources/resource_pool.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/resource_pool.cc View 1 2 3 4 5 7 chunks +13 lines, -10 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 24 (4 generated)
prashant.n
PTAL, this currently crashes. I'll fix that soon.
5 years, 1 month ago (2015-10-30 13:35:31 UTC) #3
reveman
The MRU to LRU change makes sense but I'm not sure about all these other ...
5 years, 1 month ago (2015-10-30 13:45:30 UTC) #4
prashant.n
On 2015/10/30 13:45:30, reveman wrote: > The MRU to LRU change makes sense but I'm ...
5 years, 1 month ago (2015-10-30 19:00:37 UTC) #5
reveman
On 2015/10/30 at 19:00:37, prashant.n wrote: > On 2015/10/30 13:45:30, reveman wrote: > > The ...
5 years, 1 month ago (2015-10-30 19:33:41 UTC) #6
prashant.n
PTAL.
5 years, 1 month ago (2015-10-31 14:48:24 UTC) #7
reveman
https://codereview.chromium.org/1420433009/diff/60001/cc/base/scoped_ptr_deque.h File cc/base/scoped_ptr_deque.h (right): https://codereview.chromium.org/1420433009/diff/60001/cc/base/scoped_ptr_deque.h#newcode109 cc/base/scoped_ptr_deque.h:109: scoped_ptr<T> rtake(reverse_iterator position) { Instead of adding this, can ...
5 years, 1 month ago (2015-11-02 01:47:07 UTC) #8
prashant.n
https://codereview.chromium.org/1420433009/diff/60001/cc/base/scoped_ptr_deque.h File cc/base/scoped_ptr_deque.h (right): https://codereview.chromium.org/1420433009/diff/60001/cc/base/scoped_ptr_deque.h#newcode109 cc/base/scoped_ptr_deque.h:109: scoped_ptr<T> rtake(reverse_iterator position) { I think same thing we'll ...
5 years, 1 month ago (2015-11-02 04:07:20 UTC) #9
prashant.n
typos - is same execpt the search is same *except the search which I was ...
5 years, 1 month ago (2015-11-02 04:15:50 UTC) #10
reveman
https://codereview.chromium.org/1420433009/diff/60001/cc/base/scoped_ptr_deque.h File cc/base/scoped_ptr_deque.h (right): https://codereview.chromium.org/1420433009/diff/60001/cc/base/scoped_ptr_deque.h#newcode109 cc/base/scoped_ptr_deque.h:109: scoped_ptr<T> rtake(reverse_iterator position) { On 2015/11/02 at 04:07:20, prashant.n ...
5 years, 1 month ago (2015-11-02 04:32:59 UTC) #11
prashant.n
ptal.
5 years, 1 month ago (2015-11-02 05:28:27 UTC) #12
reveman
https://codereview.chromium.org/1420433009/diff/80001/cc/resources/resource_pool.cc File cc/resources/resource_pool.cc (right): https://codereview.chromium.org/1420433009/diff/80001/cc/resources/resource_pool.cc#newcode110 cc/resources/resource_pool.cc:110: static_cast<ResourceDeque::iterator>(--rit.base()); if we need this then can we add ...
5 years, 1 month ago (2015-11-02 06:07:52 UTC) #13
prashant.n
We can do that too. I tried this earlier, but there were many changes than ...
5 years, 1 month ago (2015-11-02 07:54:51 UTC) #14
prashant.n
We can do that too. I tried this earlier, but there were many changes than ...
5 years, 1 month ago (2015-11-02 07:54:51 UTC) #15
prashant.n
https://codereview.chromium.org/1420433009/diff/80001/cc/resources/resource_pool.cc File cc/resources/resource_pool.cc (right): https://codereview.chromium.org/1420433009/diff/80001/cc/resources/resource_pool.cc#newcode110 cc/resources/resource_pool.cc:110: static_cast<ResourceDeque::iterator>(--rit.base()); IMO, iterators are different, so typecast would be ...
5 years, 1 month ago (2015-11-02 17:56:45 UTC) #16
reveman
https://codereview.chromium.org/1420433009/diff/80001/cc/resources/resource_pool.h File cc/resources/resource_pool.h (right): https://codereview.chromium.org/1420433009/diff/80001/cc/resources/resource_pool.h#newcode122 cc/resources/resource_pool.h:122: // Holds least recently used resources at the front ...
5 years, 1 month ago (2015-11-02 18:16:29 UTC) #17
prashant.n
Changed the order of mru <-> lru. The function CheckBusyResources traverses busy resources from MRU ...
5 years, 1 month ago (2015-11-03 05:46:52 UTC) #19
reveman
lgtm
5 years, 1 month ago (2015-11-03 14:26:49 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1420433009/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1420433009/100001
5 years, 1 month ago (2015-11-03 15:08:40 UTC) #22
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 1 month ago (2015-11-03 18:20:35 UTC) #23
commit-bot: I haz the power
5 years, 1 month ago (2015-11-03 18:21:29 UTC) #24
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/f5618420f5dc8484d15a5388b45d60011d0d0474
Cr-Commit-Position: refs/heads/master@{#357557}

Powered by Google App Engine
This is Rietveld 408576698