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

Issue 22314011: Pass references to BinComparator. (Closed)

Created:
7 years, 4 months ago by Tom Hudson
Modified:
7 years, 4 months ago
Reviewers:
danakj, vmpstr, tomhudson
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

Pass references to BinComparator. By passing references to scoped_refptr objects to BinComparator(), we avoid copying the objects and the consequent reference count churn. Should make sorting 25% faster. BUG=268441 R=vmpstr@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=215927

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M cc/resources/tile_manager.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
tomhudson
I think I'm seeing ~10% speedup in cc_perftests' manage_tiles on N7 with this change Vlad ...
7 years, 4 months ago (2013-08-06 14:41:10 UTC) #1
danakj
On Tue, Aug 6, 2013 at 10:41 AM, <tomhudson@google.com> wrote: > I think I'm seeing ...
7 years, 4 months ago (2013-08-06 15:21:10 UTC) #2
danakj
LGTM
7 years, 4 months ago (2013-08-06 15:21:21 UTC) #3
vmpstr
On 2013/08/06 15:21:21, danakj wrote: > LGTM lgtm2
7 years, 4 months ago (2013-08-06 15:34:17 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tomhudson@chromium.org/22314011/1
7 years, 4 months ago (2013-08-06 15:34:56 UTC) #5
commit-bot: I haz the power
Change committed as 215927
7 years, 4 months ago (2013-08-06 17:51:42 UTC) #6
tomhudson
7 years, 4 months ago (2013-08-08 11:02:56 UTC) #7
Message was sent while issue was closed.
On 2013/08/06 15:21:10, danakj wrote:
> On Tue, Aug 6, 2013 at 10:41 AM, <mailto:tomhudson@google.com> wrote:
> 
> Wow, maybe we need a presubmit rule to enforce passing scoped refptr by
> const& instead of by value.

I haven't found an easy way to audit it, but although cc does a fair amount of
passing scoped refptrs by value I think I'm seeing them at a rate of few/page or
few/second instead of many/frame.

Powered by Google App Engine
This is Rietveld 408576698