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

Issue 3015023: AU: delta generation: cut cycles in graph more aggressively (Closed)

Created:
10 years, 5 months ago by adlr
Modified:
9 years ago
Reviewers:
petkov
CC:
chromium-os-reviews_chromium.org
Base URL:
ssh://git@chromiumos-git/update_engine.git
Visibility:
Public.

Description

AU: delta generation: cut cycles in graph more aggressively I found that with some deltas I was generating, finding and cutting all cycles in the graph was taking way too long (hours). This CL increases the agressiveness used to cut edges and presents a test case that performs particularly poorly without this optimization. BUG=chromium-os:5060 TEST=attached unittest, tested generating/applying delta w/ images that needed this optimization

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -1 line) Patch
M cycle_breaker.h View 1 chunk +1 line, -0 lines 0 comments Download
M cycle_breaker.cc View 4 chunks +20 lines, -1 line 1 comment Download
M cycle_breaker_unittest.cc View 1 chunk +71 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
adlr
10 years, 5 months ago (2010-07-23 03:35:23 UTC) #1
petkov
Same general comment about following development as the other CL. LGTM http://codereview.chromium.org/3015023/diff/1/2 File cycle_breaker.cc (right): ...
10 years, 5 months ago (2010-07-23 06:32:23 UTC) #2
adlr
10 years, 4 months ago (2010-07-26 20:49:38 UTC) #3
On Thu, Jul 22, 2010 at 11:32 PM, <petkov@chromium.org> wrote:

> Same general comment about following development as the other CL.
>
> LGTM
>
>
>
> http://codereview.chromium.org/3015023/diff/1/2
> File cycle_breaker.cc (right):
>
> http://codereview.chromium.org/3015023/diff/1/2#newcode143
> cycle_breaker.cc:143: if (StackContainsCutEdge())
> this seems to introduce n^2 kind of complexity... I assume sizes are OK
> to not be a problem (or, maybe, there's a bigger problem already
> anyway).


This is something that could be looked at for future optimization, but in
general this CL fixes a much bigger need for optimization.

I'm going to push this for now, we can revisit this later if it's an issue.

-andrew


>
>
> http://codereview.chromium.org/3015023/show
>

Powered by Google App Engine
This is Rietveld 408576698