firefox: add ltoSupport and enable it by default #99922
Motivation for this change
Build Firefox with LTO support as upstream does. This change switches the compiler to clang and linker to lld.
The closure size increased by ~1% (586.6M -> 592.9M).
The resulting directory of interest did decrease in size (181M -> 179M).
The text was updated successfully, but these errors were encountered:
Using the Speedometer 2.0 on an Intel Core 2 Duo CPU T7250 @ 2.00GHz.
The benchmark seems to show a performance increase of ~9% when going from non-LTO to LTO.
This is a considerably old machine so I am not sure how accurate the benchmark results are but I can give my opinion saying it feels smoother.