diff options
author | dcastagna <dcastagna@chromium.org> | 2015-08-04 16:34:17 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-04 23:38:33 +0000 |
commit | de791ab8def0ddc494527fcdda652399b8c6e50c (patch) | |
tree | 33ca90c26c05abb60ed2c53396a23b4a9f3b00c0 /cc/raster/tile_task_runner.h | |
parent | 648e7a183ed03b90487fe1d0d36fa6c722ca035c (diff) | |
download | chromium_src-de791ab8def0ddc494527fcdda652399b8c6e50c.zip chromium_src-de791ab8def0ddc494527fcdda652399b8c6e50c.tar.gz chromium_src-de791ab8def0ddc494527fcdda652399b8c6e50c.tar.bz2 |
cc: Make TaskGraphRunner DependencyMismatch debug check faster.
When a new dependency graph is scheduled, TaskGraphRunner checks
that the number of dependencies explicitly set in the nodes matches
the dependencies defined by the edges of the graph.
While the performance of this check is not a real issue, since it
runs only in debug and usually the number of nodes/edges is small,
it can be a problem in tests where the number of nodes is artifically
high.
This CL makes the debug check faster changing the runtime complexity
of the code from O(|nodes| X |edges|) to O(max(|nodes|, |edges|).
BUG=
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1263223004
Cr-Commit-Position: refs/heads/master@{#341825}
Diffstat (limited to 'cc/raster/tile_task_runner.h')
0 files changed, 0 insertions, 0 deletions