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

Issue 2905383002: cc: Improve performance of PaintOpBuffer::Playback with no ranges. (Closed)

Created:
3 years, 7 months ago by danakj
Modified:
3 years, 6 months ago
Reviewers:
vmpstr, enne (OOO)
CC:
enne (OOO), cc-bugs_chromium.org, chromium-reviews, vmpstr
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Improve performance of PaintOpBuffer::Playback with no ranges. In this case we were constructing 2 vectors on each call to playback() which causes us to do malloc/free twice as well. Instead, define a static vector and pass that which recovers basically all the lost time. The other changes in NextOp try to improve the codegen, and seem to maybe have up to 1ms improvement of the remaining delta of 2ms from before cfc477b43f1c91e84e17180ee937728d6f496aa6, but it's in the noise. However I think it's nicer with less nesting and only writing the operator++ once anyways. BUG=726031 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2905383002 Cr-Commit-Position: refs/heads/master@{#475936} Committed: https://chromium.googlesource.com/chromium/src/+/4deb94b53a551930b3db578c4c339ec0ef95bc6b

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -23 lines) Patch
M cc/paint/paint_op_buffer.cc View 1 chunk +27 lines, -23 lines 0 comments Download

Messages

Total messages: 13 (9 generated)
danakj
3 years, 7 months ago (2017-05-26 22:01:23 UTC) #3
enne (OOO)
lgtm
3 years, 6 months ago (2017-05-29 23:15:21 UTC) #8
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/2905383002/1
3 years, 6 months ago (2017-05-31 15:05:54 UTC) #10
commit-bot: I haz the power
3 years, 6 months ago (2017-05-31 16:25:59 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/4deb94b53a551930b3db578c4c33...

Powered by Google App Engine
This is Rietveld 408576698