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

Issue 4610001: AU: Speed up full update payload generation by running multiple threads. (Closed)

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

Description

AU: Speed up full update payload generation by running multiple threads. Full end-to-end payload generation drops from 140 to 40 seconds on my machine. BUG=8747 TEST=unit tests, updated through dev server Change-Id: Ib3934b38a55e043abfa49abb25b2931e529ff768 Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=7a22d79

Patch Set 1 #

Patch Set 2 : fix trailing backslash #

Patch Set 3 : more c++ like setup for the worker threads #

Patch Set 4 : doc strings #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+359 lines, -176 lines) Patch
M SConstruct View 2 chunks +2 lines, -0 lines 0 comments Download
M delta_diff_generator.h View 1 chunk +0 lines, -17 lines 0 comments Download
M delta_diff_generator.cc View 3 chunks +11 lines, -88 lines 0 comments Download
M delta_performer_unittest.cc View 5 chunks +17 lines, -71 lines 0 comments Download
A full_update_generator.h View 1 chunk +41 lines, -0 lines 0 comments Download
A full_update_generator.cc View 1 2 3 1 chunk +197 lines, -0 lines 2 comments Download
A full_update_generator_unittest.cc View 1 chunk +91 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
petkov
10 years, 1 month ago (2010-11-05 22:33:31 UTC) #1
adlr
LGTM! Great stuff! http://codereview.chromium.org/4610001/diff/7001/8005 File full_update_generator.cc (right): http://codereview.chromium.org/4610001/diff/7001/8005#newcode158 full_update_generator.cc:158: threads.pop_front(); might be faster to wait ...
10 years, 1 month ago (2010-11-08 21:27:08 UTC) #2
petkov
http://codereview.chromium.org/4610001/diff/7001/8005 File full_update_generator.cc (right): http://codereview.chromium.org/4610001/diff/7001/8005#newcode158 full_update_generator.cc:158: threads.pop_front(); On 2010/11/08 21:27:08, adlr wrote: > might be ...
10 years, 1 month ago (2010-11-08 21:45:21 UTC) #3
adlr
10 years, 1 month ago (2010-11-08 22:48:51 UTC) #4
agree! check it in!

On Mon, Nov 8, 2010 at 1:45 PM, <petkov@chromium.org> wrote:

>
> http://codereview.chromium.org/4610001/diff/7001/8005
> File full_update_generator.cc (right):
>
> http://codereview.chromium.org/4610001/diff/7001/8005#newcode158
> full_update_generator.cc:158: threads.pop_front();
> On 2010/11/08 21:27:08, adlr wrote:
>
>> might be faster to wait on all of the threads, but that can get
>>
> tricky, so i
>
>> think this is fine for now. just wanted to mention it.
>>
>
> Maybe... We could also make the separate threads write the output
> directly. This may have performance benefits but it will make us
> generate unreproducable payloads. Or, we just rely on reorder data blobs
> later to generate an ordered payload. Right now, ReorderDataBlobs
> doesn't really need to run for full updates (i.e., another way to
> improve performance).
>
> Anyway, this seems good enough as is...
>
>
> http://codereview.chromium.org/4610001/show
>

Powered by Google App Engine
This is Rietveld 408576698