diff options
author | brucedawson <brucedawson@chromium.org> | 2015-01-05 11:51:33 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-05 19:52:19 +0000 |
commit | 3d590caaa24756435060775cb6887d2d0a5b0690 (patch) | |
tree | ec1f9b22c42cb71898ded784d0ed5bfa3d345594 | |
parent | 98efad131d7fc75e2f61d65d6b0c106d79ffa70f (diff) | |
download | chromium_src-3d590caaa24756435060775cb6887d2d0a5b0690.zip chromium_src-3d590caaa24756435060775cb6887d2d0a5b0690.tar.gz chromium_src-3d590caaa24756435060775cb6887d2d0a5b0690.tar.bz2 |
Set LTCG code-gen thread count to eight.
Link Time Code Generation in VS 2013 defaults to using four code-gen
threads, but more can be requested using /cgthreads:n, up to a maximum
of eight.
Most of the link phase is single threaded so this does not double linker
throughput. On pdf.dll on a Z620 this drops the link times from ~164 s
down to ~150 s for a 9% speedup. If the c2.dll!SsrFree bugs are fixed
(https://connect.microsoft.com/VisualStudio/feedback/details/1064219)
then /cgthreads:n will be even more important.
BUG=444951
Review URL: https://codereview.chromium.org/813283003
Cr-Commit-Position: refs/heads/master@{#309941}
-rw-r--r-- | build/common.gypi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi index dac72f3..f67961a 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -5274,6 +5274,11 @@ 'VCLinkerTool': { # Set /LTCG for the official builds. 'LinkTimeCodeGeneration': '1', + 'AdditionalOptions': [ + # Set the number of LTCG code-gen threads to eight. + # The default is four. This gives a 5-10% link speedup. + '/cgthreads:8', + ], }, }, 'target_conditions': [ |