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

Issue 1109193002: Use --num-thread=10 when dexing Android code (saves 5 seconds) (Closed)

Created:
5 years, 7 months ago by agrieve
Modified:
5 years, 7 months ago
Reviewers:
Lei Zhang, cjhopman
CC:
chromium-reviews, klundberg+watch_chromium.org, yfriedman+watch_chromium.org, jbudorick+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use --num-thread=10 when dexing Android code (saves 5 seconds) Timing for creating chrome_apk/classes.dex: No flag: real 0m10.767s user 0m16.480s sys 0m0.444s --num-threads=4 real 0m7.450s user 0m11.837s sys 0m0.606s --num-threads=10 (or 20, or 80) real 0m5.399s user 0m9.266s sys 0m0.420s Timings performed on a z620 workstation. BUG= Committed: https://crrev.com/0f9ad3a20275b77d228f67c2edd89dbea0e3e9ea Cr-Commit-Position: refs/heads/master@{#327358}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M build/android/gyp/dex.py View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 11 (3 generated)
agrieve
5 years, 7 months ago (2015-04-28 18:26:51 UTC) #2
cjhopman
lgtm
5 years, 7 months ago (2015-04-28 18:34:29 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1109193002/1
5 years, 7 months ago (2015-04-28 19:29:01 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 7 months ago (2015-04-28 20:34:26 UTC) #6
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/0f9ad3a20275b77d228f67c2edd89dbea0e3e9ea Cr-Commit-Position: refs/heads/master@{#327358}
5 years, 7 months ago (2015-04-28 20:35:19 UTC) #7
Lei Zhang
(drive by) Why not just use multiprocessing.cpu_count() ? Using 10 threads may not make sense ...
5 years, 7 months ago (2015-05-05 02:03:50 UTC) #9
agrieve1
On 2015/05/05 02:03:50, Lei Zhang wrote: > (drive by) Why not just use multiprocessing.cpu_count() ? ...
5 years, 7 months ago (2015-05-05 02:11:52 UTC) #10
gsennton
5 years, 7 months ago (2015-05-06 13:08:07 UTC) #11
Message was sent while issue was closed.
A revert of this CL (patchset #1 id:1) has been created in
https://codereview.chromium.org/1129793002/ by gsennton@chromium.org.

The reason for reverting is: This patch makes the creation of dex files
non-deterministic -- dex files from different runs of the same build might not
be exactly similar.

This is a problem because for 64-bit webview APKs we need to merge a 32-bit APK
into the 64-bit APK (to make 32-bit apps work). When we do this we check that
the files in the different APks are similar and this check doesn't work if the
dex files in the two APKs are not exactly the same.
https://code.google.com/p/chromium/issues/detail?id=483665.

Powered by Google App Engine
This is Rietveld 408576698