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

Unified Diff: build/config/compiler/BUILD.gn

Issue 2341983002: ThinLTO: limit link / codegen parallelism to 16. (Closed)
Patch Set: Created 4 years, 3 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/config/compiler/BUILD.gn
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
index 3c71d12c9bbbc65f1efeaef2206b364cec1505e3..70d6bed84c092ccb666f73399fe2c4ac1ebc1621 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -435,6 +435,12 @@ config("compiler") {
if (use_thin_lto) {
cflags += [ "-flto=thin" ]
ldflags += [ "-flto=thin" ]
+
+ if (is_linux && !use_lld) {
+ # Limit the parallelism to the sweet spot on most of the machines.
+ # As of now, ThinLTO does scale beyond 16 cores anyway.
dpranke 2016/09/15 03:35:20 I think you mean "does not scale", right? Does th
krasin1 2016/09/15 03:43:42 right. Fixed.
+ ldflags += [ "-Wl,-plugin-opt,jobs=16" ]
+ }
} else {
# Note: ThinLTO does not currently have this feature implemented
# For Full LTO, it provides a measurable runtime speedup of Chrome.
« 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