--disable-optimize makes host programs get compiled without optimize flags
Categories
(Firefox Build System :: General, defect)
Tracking
(firefox-esr115 wontfix, firefox120 wontfix, firefox121 wontfix, firefox122 fixed)
People
(Reporter: igoldan, Assigned: jwatt)
References
(Blocks 1 open bug)
Details
(Keywords: regression)
Attachments
(1 file)
Reporter | ||
Updated•7 years ago
|
Comment 2•7 years ago
|
||
Reporter | ||
Updated•7 years ago
|
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
Comment 6•7 years ago
|
||
Comment 7•7 years ago
|
||
Comment 8•7 years ago
|
||
Reporter | ||
Comment 9•7 years ago
|
||
Comment 10•7 years ago
|
||
Reporter | ||
Comment 11•7 years ago
|
||
Comment 12•7 years ago
|
||
Comment 13•7 years ago
|
||
Updated•7 years ago
|
Comment 15•7 years ago
|
||
Comment 16•7 years ago
|
||
Comment 17•7 years ago
|
||
Comment 18•7 years ago
|
||
Comment 19•7 years ago
|
||
Comment 20•7 years ago
|
||
Comment 21•7 years ago
|
||
Comment 22•7 years ago
|
||
Comment 23•7 years ago
|
||
Comment 24•7 years ago
|
||
Comment 25•7 years ago
|
||
Comment 26•7 years ago
|
||
Comment 27•7 years ago
|
||
Comment 28•7 years ago
|
||
Updated•2 years ago
|
Assignee | ||
Comment 29•1 year ago
•
|
||
On a 16-core M3 MBP, my clobber build times are:
9m 29s with --disable-optimize
: https://share.firefox.dev/414j6sV
6m 37s with --enable-optimize="-O1"
: https://share.firefox.dev/3Rn50Qf
--disable-optimize
causing this 50% increase in build times seems to be down to host tools being affected by --disable-optimize
, as pointed out by Mike in bug 1867594 comment 7.
Looking at our build telemetry, it looks like about 70%-80% of developer builds use --disable-optimize
, that number being over 80% on macOS:
https://sql.telemetry.mozilla.org/queries/96326/source?p_date=d_last_30_days#237829
I guess the usage is probably so high for historical reasons, since --disable-optimize --disable-debug
has in the past been recommended for faster build times while still generating a reasonably fast Firefox build.
But now that we have vendored in so many host tools, and until this bug is fixed, --disable-optimize
is probably something to avoid when possible. Particularly on Apple silicon.
Assignee | ||
Comment 30•1 year ago
|
||
At the risk of muddying the waters a bit, I'll share some Linux times here too.
On a 7950X desktop, my clobber times are:
4m 55s with --disable-optimize
: https://share.firefox.dev/47Wpkxi
6m 32s with --enable-optimize="-O1"
: https://share.firefox.dev/47Wpkxi
So on Linux, the --disable-optimize
build is the faster of the two (the opposite of macOS). The rlbox.wasm.c
step still takes longer with --disable-optimize
, taking 34s vs. 17s, but that's much, much less bad that on macOS, where it takes 3m 4s vs 11s. However, in the Linux profiles the rlbox.wasm.c
step still seems to be a long pole item, so fixing this bug could potentially reduce that 4m 55s time by 20s or so.
Assignee | ||
Comment 31•1 year ago
|
||
For the record, the mozconfig I used for the builds I discussed in the above two comments was:
ac_add_options --disable-launcher-process
ac_add_options --enable-layout-debugger
ac_add_options --disable-optimize
#ac_add_options --enable-optimize="-O1"
ac_add_options --disable-debug
ac_add_options --disable-release
ac_add_options --enable-dump-painting
ac_add_options --enable-debug-symbols
ac_add_options --enable-profiling
ac_add_options --disable-crashreporter
Assignee | ||
Comment 32•1 year ago
|
||
Prior to this change, --disable-optimize clobber builds on macOS took 50%
longer. Build telemetry shows over 80% of developer builds on macOS use
--disable-optimize.
The defaults for HOST_OPTIMIZE_FLAGS that are set in old-configure.in can be
overriden by setting the variable in your mozconfig. For example, setting:
HOST_OPTIMIZE_FLAGS=-O1
Updated•1 year ago
|
Assignee | ||
Comment 33•1 year ago
•
|
||
This patch makes a very significant difference to --disable-optimize
builds on Apple silicon macs. A couple of test clobber build profiles:
8m 56s before: https://share.firefox.dev/3R4jGlX
6m 13s after: https://share.firefox.dev/3R5Bm0E
Comment 34•1 year ago
|
||
Comment 35•1 year ago
|
||
Backed out for py3 failures on test_emitter.py
Failure log: https://treeherder.mozilla.org/logviewer?job_id=438870511&repo=autoland
Backout link: https://hg.mozilla.org/integration/autoland/rev/cbfee738b82dda693a04f29c06bbb1713e60bbbe
Comment 36•1 year ago
|
||
Comment 37•1 year ago
|
||
bugherder |
Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Description
•