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

Unified Diff: build/android/gyp/dex.py

Issue 1319523002: Reland: Use --num-thread=10 when dexing Android code (saves 5 seconds) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add comment & rebase Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/gyp/dex.py
diff --git a/build/android/gyp/dex.py b/build/android/gyp/dex.py
index 3b4141f2f1418a47ff345d496ee54aaf86ae7674..898ee8f66f959e62135db123224fdb83db2ddaae 100755
--- a/build/android/gyp/dex.py
+++ b/build/android/gyp/dex.py
@@ -48,7 +48,10 @@ def DoMultiDex(options, paths):
def DoDex(options, paths, dex_args=None):
dx_binary = os.path.join(options.android_sdk_tools, 'dx')
# See http://crbug.com/272064 for context on --force-jumbo.
- dex_cmd = [dx_binary, '--dex', '--force-jumbo', '--output', options.dex_path]
+ # See https://github.com/android/platform_dalvik/commit/dd140a22d for
+ # --num-threads.
+ dex_cmd = [dx_binary, '--num-threads=8', '--dex', '--force-jumbo',
+ '--output', options.dex_path]
if options.no_locals != '0':
dex_cmd.append('--no-locals')
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698