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

Issue 5603001: Restructure FilesystemCopierAction to use ping-pong buffers. (Closed)

Created:
10 years ago by petkov
Modified:
9 years, 7 months ago
Reviewers:
adlr
CC:
chromium-os-reviews_chromium.org, petkov, adlr
Visibility:
Public.

Description

Restructure FilesystemCopierAction to use ping-pong buffers. This would allow some parallel processing -- calculating hashes in parallel with read in parallel with write. Performance benefit at this stage seems marginal. The major reason for the change is to reuse the FilesystemCopierAction for applied update verification -- hopefully speeding it up and making AU responsive to D-Bus signals during that stage. That would be a separate CL though. BUG=9140 TEST=unit tests, tested update on the device Change-Id: I9d07ebbf4d536362c0a955addcaa1d48d5e9b115 Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=c2e4a7d

Patch Set 1 #

Total comments: 4

Patch Set 2 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -115 lines) Patch
M filesystem_copier_action.h View 4 chunks +44 lines, -33 lines 0 comments Download
M filesystem_copier_action.cc View 1 4 chunks +161 lines, -82 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
petkov
10 years ago (2010-12-02 19:40:17 UTC) #1
adlr
LGTM! 2 very minor nits http://codereview.chromium.org/5603001/diff/1/filesystem_copier_action.cc File filesystem_copier_action.cc (right): http://codereview.chromium.org/5603001/diff/1/filesystem_copier_action.cc#newcode47 filesystem_copier_action.cc:47: for (int i = ...
10 years ago (2010-12-02 22:12:13 UTC) #2
petkov
PTAL http://codereview.chromium.org/5603001/diff/1/filesystem_copier_action.cc File filesystem_copier_action.cc (right): http://codereview.chromium.org/5603001/diff/1/filesystem_copier_action.cc#newcode47 filesystem_copier_action.cc:47: for (int i = 0; i < 2; ...
10 years ago (2010-12-02 22:39:40 UTC) #3
adlr
10 years ago (2010-12-02 22:44:33 UTC) #4
LGTM

Powered by Google App Engine
This is Rietveld 408576698