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

Issue 174453003: cc: Replace RasterTaskStateMap with a vector and brute force search instead of hash map lookups. (Closed)

Created:
6 years, 10 months ago by reveman
Modified:
6 years, 9 months ago
Reviewers:
vmpstr
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

cc: Replace RasterTaskStateMap with a vector and brute force search instead of hash map lookups. Also avoids unnecessary heap allocations by recycling old state vector. Result is ~100% performance improvement to ScheduleTasks. BUG=269841 TEST=cc_perftests --gtest_filter=RasterWorkerPoolPerfTests/RasterWorkerPoolPerfTest.ScheduleTasks/0 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255615

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 12

Patch Set 3 : address review feedback #

Total comments: 4

Patch Set 4 : add comment #

Total comments: 2

Patch Set 5 : move comment #

Patch Set 6 : rebase #

Patch Set 7 : android build fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -104 lines) Patch
M cc/resources/pixel_buffer_raster_worker_pool.h View 1 2 3 4 5 6 3 chunks +26 lines, -29 lines 0 comments Download
M cc/resources/pixel_buffer_raster_worker_pool.cc View 1 2 3 4 5 6 14 chunks +125 lines, -75 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
reveman
6 years, 10 months ago (2014-02-21 00:09:37 UTC) #1
vmpstr
https://codereview.chromium.org/174453003/diff/40001/cc/resources/pixel_buffer_raster_worker_pool.cc File cc/resources/pixel_buffer_raster_worker_pool.cc (left): https://codereview.chromium.org/174453003/diff/40001/cc/resources/pixel_buffer_raster_worker_pool.cc#oldcode115 cc/resources/pixel_buffer_raster_worker_pool.cc:115: RasterTaskStateMap::iterator state_it = raster_task_states_.find(task); Out of curiousity... The current ...
6 years, 10 months ago (2014-02-21 18:39:41 UTC) #2
reveman
https://codereview.chromium.org/174453003/diff/40001/cc/resources/pixel_buffer_raster_worker_pool.cc File cc/resources/pixel_buffer_raster_worker_pool.cc (left): https://codereview.chromium.org/174453003/diff/40001/cc/resources/pixel_buffer_raster_worker_pool.cc#oldcode115 cc/resources/pixel_buffer_raster_worker_pool.cc:115: RasterTaskStateMap::iterator state_it = raster_task_states_.find(task); On 2014/02/21 18:39:41, vmpstr wrote: ...
6 years, 10 months ago (2014-02-22 11:32:00 UTC) #3
vmpstr
https://codereview.chromium.org/174453003/diff/40001/cc/resources/pixel_buffer_raster_worker_pool.cc File cc/resources/pixel_buffer_raster_worker_pool.cc (left): https://codereview.chromium.org/174453003/diff/40001/cc/resources/pixel_buffer_raster_worker_pool.cc#oldcode115 cc/resources/pixel_buffer_raster_worker_pool.cc:115: RasterTaskStateMap::iterator state_it = raster_task_states_.find(task); On 2014/02/22 11:32:01, reveman wrote: ...
6 years, 10 months ago (2014-02-24 17:37:58 UTC) #4
reveman
https://codereview.chromium.org/174453003/diff/100001/cc/resources/pixel_buffer_raster_worker_pool.cc File cc/resources/pixel_buffer_raster_worker_pool.cc (right): https://codereview.chromium.org/174453003/diff/100001/cc/resources/pixel_buffer_raster_worker_pool.cc#newcode162 cc/resources/pixel_buffer_raster_worker_pool.cc:162: if (state_it == raster_task_states_.end()) On 2014/02/24 17:37:59, vmpstr wrote: ...
6 years, 10 months ago (2014-02-24 19:20:03 UTC) #5
vmpstr
lgtm https://codereview.chromium.org/174453003/diff/150001/cc/resources/pixel_buffer_raster_worker_pool.cc File cc/resources/pixel_buffer_raster_worker_pool.cc (right): https://codereview.chromium.org/174453003/diff/150001/cc/resources/pixel_buffer_raster_worker_pool.cc#newcode163 cc/resources/pixel_buffer_raster_worker_pool.cc:163: continue; // Already processed completion of task. nit: ...
6 years, 10 months ago (2014-02-24 19:22:27 UTC) #6
reveman
https://codereview.chromium.org/174453003/diff/150001/cc/resources/pixel_buffer_raster_worker_pool.cc File cc/resources/pixel_buffer_raster_worker_pool.cc (right): https://codereview.chromium.org/174453003/diff/150001/cc/resources/pixel_buffer_raster_worker_pool.cc#newcode163 cc/resources/pixel_buffer_raster_worker_pool.cc:163: continue; // Already processed completion of task. On 2014/02/24 ...
6 years, 10 months ago (2014-02-24 19:37:42 UTC) #7
reveman
The CQ bit was checked by reveman@chromium.org
6 years, 9 months ago (2014-03-04 23:29:47 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/174453003/230001
6 years, 9 months ago (2014-03-04 23:30:45 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-05 00:28:22 UTC) #10
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) app_list_unittests, ash_unittests, aura_unittests, cacheinvalidation_unittests, cc_unittests, check_deps, ...
6 years, 9 months ago (2014-03-05 00:28:23 UTC) #11
reveman
The CQ bit was checked by reveman@chromium.org
6 years, 9 months ago (2014-03-06 20:48:11 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/174453003/230001
6 years, 9 months ago (2014-03-06 21:15:54 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/174453003/230001
6 years, 9 months ago (2014-03-06 22:02:10 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 23:20:40 UTC) #15
commit-bot: I haz the power
Retried try job too often on android_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_dbg&number=158133
6 years, 9 months ago (2014-03-06 23:20:41 UTC) #16
reveman
The CQ bit was checked by reveman@chromium.org
6 years, 9 months ago (2014-03-07 00:18:08 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/174453003/250001
6 years, 9 months ago (2014-03-07 00:25:30 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-07 02:55:37 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg, mac_chromium_rel
6 years, 9 months ago (2014-03-07 02:55:38 UTC) #20
reveman
The CQ bit was checked by reveman@chromium.org
6 years, 9 months ago (2014-03-07 03:09:51 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/174453003/250001
6 years, 9 months ago (2014-03-07 03:15:48 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-07 05:40:10 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg
6 years, 9 months ago (2014-03-07 05:40:10 UTC) #24
reveman
The CQ bit was checked by reveman@chromium.org
6 years, 9 months ago (2014-03-07 13:31:05 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/174453003/250001
6 years, 9 months ago (2014-03-07 13:32:06 UTC) #26
commit-bot: I haz the power
6 years, 9 months ago (2014-03-07 15:11:45 UTC) #27
Message was sent while issue was closed.
Change committed as 255615

Powered by Google App Engine
This is Rietveld 408576698