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

Issue 3618006: AU: Cyclebreaker optimization (Closed)

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

Description

AU: Cyclebreaker optimization When using the cycle breaker, we know that operations that are full (REPLACE, REPLACE_BZ) can't have any incoming edges, and thus can't be in a cycle. To help reduce CPU usage, change the cycle breaker to skip nodes that are REPLACE or REPLACE_BZ. BUG=7294 TEST=Attached unittests, generated delta update and applied it Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=182a9f5

Patch Set 1 #

Total comments: 2

Patch Set 2 : unittest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -1 line) Patch
M cycle_breaker.h View 2 chunks +7 lines, -0 lines 0 comments Download
M cycle_breaker.cc View 1 3 chunks +10 lines, -1 line 0 comments Download
M cycle_breaker_unittest.cc View 1 6 chunks +35 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
adlr
10 years, 2 months ago (2010-10-05 17:55:07 UTC) #1
petkov
One issue below, LGTM otherwise. One could also add a unit test, for example, through ...
10 years, 2 months ago (2010-10-05 18:04:20 UTC) #2
adlr
10 years, 2 months ago (2010-10-05 23:34:15 UTC) #3
thanks. fixed, wrote unittest, and pushed

http://codereview.chromium.org/3618006/diff/1/2
File cycle_breaker.cc (right):

http://codereview.chromium.org/3618006/diff/1/2#newcode42
cycle_breaker.cc:42: op_type ==
DeltaArchiveManifest_InstallOperation_Type_REPLACE) {
On 2010/10/05 18:04:20, petkov wrote:
> you mean REPLACE_BZ here, right?
> 

ooo. i should have caught that. thanks. fixed.

Powered by Google App Engine
This is Rietveld 408576698