Closed
Bug 970175
Opened 11 years ago
Closed 7 years ago
Save memory via LTO & PGO
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: taras.mozilla, Unassigned)
Details
LTO can do devirtualization and whole-program dead-code elimination(* due to the linker seeing the whole function graph and symbol visibility list). This could probably shave 1mb of code or more from libxul.so.
In addition to LTO making the binary smaller, upcoming gcc -fprofile-reorder-functions option can reorder binaries based on order of PGO execution. This significantly(15-20%) reduces the size of number of pages paged in from libxul.so
More info in:
https://blog.mozilla.org/tglek/2010/04/12/squeezing-every-last-bit-of-performance-out-of-the-linux-toolchain/
http://hubicka.blogspot.com/2014/02/devirtualization-in-c-part-3-building.html
Updated•11 years ago
|
OS: Windows 8.1 → Gonk (Firefox OS)
Hardware: x86_64 → All
Updated•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•