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

Issue 2475713002: Allocate OverlapMapContainers in vector rather than on stack with copy (Closed)

Created:
4 years, 1 month ago by ericrk
Modified:
4 years, 1 month ago
Reviewers:
chrishtr
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allocate OverlapMapContainers in vector rather than on stack with copy Currently, when we call beginNewOverlapTestingContext(), we create a new OverlapMapContainers object on the stack, and copy it into the vector. This performs an unnecessary copy of a moderately sized object (~2KB), as well as using up stack space, which can be problematic due to aggressive inlining. This change uses the Vector's grow function, rather than append. This prevents the stack allocation and the copy. R=chrishtr BUG=660097 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/3113a826ff6fcc0e2dcc5db52c937457a31bbc95 Cr-Commit-Position: refs/heads/master@{#429999}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M third_party/WebKit/Source/core/layout/compositing/CompositingRequirementsUpdater.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 21 (12 generated)
ericrk
4 years, 1 month ago (2016-11-03 18:05:24 UTC) #2
chrishtr
lgtm
4 years, 1 month ago (2016-11-03 18:13:58 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/2475713002/1
4 years, 1 month ago (2016-11-03 18:14:19 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/310544)
4 years, 1 month ago (2016-11-03 22:12:22 UTC) #12
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/2475713002/1
4 years, 1 month ago (2016-11-03 22:15:48 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/310891)
4 years, 1 month ago (2016-11-04 03:19:06 UTC) #16
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/2475713002/1
4 years, 1 month ago (2016-11-04 18:04:31 UTC) #18
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-04 20:23:44 UTC) #19
commit-bot: I haz the power
4 years, 1 month ago (2016-11-04 20:27:10 UTC) #21
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/3113a826ff6fcc0e2dcc5db52c937457a31bbc95
Cr-Commit-Position: refs/heads/master@{#429999}

Powered by Google App Engine
This is Rietveld 408576698