Chromium Code Reviews
DescriptionRemoved debug symbols from Newlib PNaCl toolchain.
Doing some preliminary profiling on the linking/optimizing
stages of PNaCl's toolchain, for an arbitrary pexe with
debug info enabled, pnacl-ld and pnacl-opt took roughly
equivalent time (For spinning cube, each stage took ~10-15
seconds). However, when stripping out debug info from
"./out/Debug/newlib_pnacl/spinning_cube.pexe.debug", I noticed
that even just removing debug info took a whopping 7 seconds.
Long story short: LLVM Debug info is bloated and slow in the
version used by PNaCl. It has since been improved
(source: https://www.youtube.com/watch?v=EgkZ8PTNSHQ), but updating
the LLVM version for PNaCl would be a nontrivial task.
For a shorter-term solution, when using the newlib_pnacl
toolchain, reduce the symbol level.
For my machine, reduced total build time from ~250 seconds to ~150 seconds.
Build times compared using goma, with a "cold" run done for each
before the measured time to warm goma's cache.
BUG=#483,#554
R=viettrungluu@chromium.org
Committed: https://chromium.googlesource.com/external/mojo/+/65a713206fc07fc0f35647d2b2aa4d062f51ea31
Patch Set 1 : #
Total comments: 2
Patch Set 2 : #Messages
Total messages: 10 (6 generated)
|