DescriptionAdd /Gw to the compiler command line to reduce .dll sizes by 0.85%
/Gw is a new command added in VS 2013 Update 2 that puts individual
global variables in their own COMDATs so that /opt:ref can more
efficiently throw them out. Size savings with buildtype=Official are
shown below:
DLL Name Old size New size Bytes Saved Percentage
chrome.dll 30,918,656 30,766,592 152,064 0.49%
chrome_child.dll 35,204,096 34,797,056 407,040 1.16%
chrome_elf.dll 125,952 124,928 1,024 0.81%
chrome_watcher.dll 216,576 213,504 3,072 1.42%
pdf.dll 9,200,128 9,162,240 37,888 0.41%
Total 75,665,408 75,064,320 601,088 0.79%
Some of the saving is from getting rid of unused duplicate copies
of const globals declared in header files. twoPiDouble and piDouble,
for instance, were showing up 2,051 and 1,408 times respectively.
This fix covers most or all of the problems covered by bug 441988
as well as other wastage.
BUG=441988
Committed: https://crrev.com/145c9c07b8fe42e0eb6cf997c67070fc62dd241e
Cr-Commit-Position: refs/heads/master@{#309067}
Patch Set 1 #
Total comments: 1
Patch Set 2 : Comment fixes and revert release_defaults.gypi #Messages
Total messages: 15 (3 generated)
|