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

Issue 12084031: A host of micro-optimizations and a refactor of TimeForBoundsToIntersect (Closed)

Created:
7 years, 10 months ago by whunt
Modified:
7 years, 10 months ago
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

A host of micro-optimizations and a refactor of TimeForBoundsToIntersect I used perf to profile the compositor thread and addressed performance problems with the top fuctions. The result is about a 2.5x performance boost. (~1.3ms -> ~.5ms) on List of Pokemon for UpdateTilePriorities. Most of the optimizations are inlining small functions. The refactor of TimeForBoundsToIntersect also eliminates many unnecessary float-double conversions. BUG=172406 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=179770 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=180229

Patch Set 1 #

Total comments: 1

Patch Set 2 : merged to tip of tree and refactored TilePriority::TimeForBoundsToIntersect #

Total comments: 6

Patch Set 3 : removing unnecessary include #

Patch Set 4 : rebasing to tip of tree again #

Patch Set 5 : moved kMaxTimeToVisibleInSeconds to avoid static initialization #

Patch Set 6 : rebasing to tip of tree #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -139 lines) Patch
M cc/picture_layer_tiling.cc View 1 2 3 4 5 4 chunks +8 lines, -5 lines 0 comments Download
M cc/tile.h View 1 2 chunks +18 lines, -3 lines 0 comments Download
M cc/tile.cc View 1 chunk +0 lines, -19 lines 0 comments Download
M cc/tile_manager.h View 1 2 3 4 1 chunk +11 lines, -2 lines 0 comments Download
M cc/tile_manager.cc View 1 2 3 4 2 chunks +1 line, -15 lines 0 comments Download
M cc/tile_priority.h View 1 2 3 4 1 chunk +20 lines, -8 lines 0 comments Download
M cc/tile_priority.cc View 1 2 3 4 3 chunks +54 lines, -63 lines 0 comments Download
M cc/tile_priority_unittest.cc View 1 3 chunks +5 lines, -3 lines 0 comments Download
M ui/gfx/rect_f.h View 1 2 3 2 chunks +14 lines, -3 lines 0 comments Download
M ui/gfx/rect_f.cc View 2 chunks +0 lines, -18 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
whunt
7 years, 10 months ago (2013-01-28 22:40:48 UTC) #1
danakj
ui/gfx/ LGTM
7 years, 10 months ago (2013-01-28 22:43:21 UTC) #2
enne (OOO)
https://codereview.chromium.org/12084031/diff/1/cc/picture_layer_tiling.cc File cc/picture_layer_tiling.cc (right): https://codereview.chromium.org/12084031/diff/1/cc/picture_layer_tiling.cc#newcode297 cc/picture_layer_tiling.cc:297: for (TileMap::const_iterator it = tiles_.begin(); This was already applied ...
7 years, 10 months ago (2013-01-28 22:55:10 UTC) #3
enne (OOO)
Please add a comment when you have updated a patch. I am not trying to ...
7 years, 10 months ago (2013-01-30 06:53:55 UTC) #4
tfarina
https://codereview.chromium.org/12084031/diff/5001/ui/gfx/rect_f.h File ui/gfx/rect_f.h (right): https://codereview.chromium.org/12084031/diff/5001/ui/gfx/rect_f.h#newcode92 ui/gfx/rect_f.h:92: r.x() * x_scale, r.y() * y_scale, nit: this does ...
7 years, 10 months ago (2013-01-30 14:55:02 UTC) #5
whunt
https://codereview.chromium.org/12084031/diff/5001/cc/picture_layer_impl.cc File cc/picture_layer_impl.cc (right): https://codereview.chromium.org/12084031/diff/5001/cc/picture_layer_impl.cc#newcode7 cc/picture_layer_impl.cc:7: #include "base/debug/trace_event.h" On 2013/01/30 06:53:56, enne wrote: > Please ...
7 years, 10 months ago (2013-01-30 21:07:33 UTC) #6
enne (OOO)
https://codereview.chromium.org/12084031/diff/5001/cc/picture_layer_tiling.cc File cc/picture_layer_tiling.cc (right): https://codereview.chromium.org/12084031/diff/5001/cc/picture_layer_tiling.cc#newcode336 cc/picture_layer_tiling.cc:336: priority.distance_to_visible_in_pixels = On 2013/01/30 21:07:33, whunt wrote: > On ...
7 years, 10 months ago (2013-01-30 21:50:12 UTC) #7
enne (OOO)
lgtm
7 years, 10 months ago (2013-01-30 22:11:27 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/whunt@chromium.org/12084031/22011
7 years, 10 months ago (2013-01-30 22:17:12 UTC) #9
whunt
On 2013/01/30 21:50:12, enne wrote: > https://codereview.chromium.org/12084031/diff/5001/cc/picture_layer_tiling.cc > File cc/picture_layer_tiling.cc (right): > > https://codereview.chromium.org/12084031/diff/5001/cc/picture_layer_tiling.cc#newcode336 > ...
7 years, 10 months ago (2013-01-30 23:39:23 UTC) #10
commit-bot: I haz the power
Change committed as 179770
7 years, 10 months ago (2013-01-31 02:09:36 UTC) #11
enne (OOO)
lgtm
7 years, 10 months ago (2013-02-01 03:35:56 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/whunt@chromium.org/12084031/5003
7 years, 10 months ago (2013-02-01 03:38:32 UTC) #13
commit-bot: I haz the power
Failed to apply patch for cc/picture_layer_tiling.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 10 months ago (2013-02-01 03:38:34 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/whunt@chromium.org/12084031/5003
7 years, 10 months ago (2013-02-01 18:24:25 UTC) #15
commit-bot: I haz the power
Failed to apply patch for cc/picture_layer_tiling.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 10 months ago (2013-02-01 18:24:27 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/whunt@chromium.org/12084031/13004
7 years, 10 months ago (2013-02-01 18:58:05 UTC) #17
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=106435
7 years, 10 months ago (2013-02-01 22:53:02 UTC) #18
whunt
On 2013/02/01 22:53:02, I haz the power (commit-bot) wrote: > Retried try job too often ...
7 years, 10 months ago (2013-02-02 00:51:37 UTC) #19
danakj
You can put NOTRY=true in your description to not run tests.
7 years, 10 months ago (2013-02-02 00:52:40 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/whunt@chromium.org/12084031/13004
7 years, 10 months ago (2013-02-02 01:11:01 UTC) #21
commit-bot: I haz the power
7 years, 10 months ago (2013-02-02 01:52:01 UTC) #22
Message was sent while issue was closed.
Change committed as 180229

Powered by Google App Engine
This is Rietveld 408576698