Closed Bug 1741983 Opened 3 years ago Closed 3 years ago

Evaluate stripping rust executables & libraries in toolchain tasks

Categories

(Firefox Build System :: Toolchains, enhancement)

enhancement

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: gsvelto, Unassigned)

Details

As per title. cargo build --release does not strip the executables so all the tools we produce from rust (with the exception of liblowercase) are not stripped.

A quick test on dump_syms shows that it would shrink down from ~16MiB to ~10MiB. Not bad! We should try the others, the savings are probably worth it unless we have a good reason to keep the executables un-stripped (backtraces maybe?).

(In reply to Gabriele Svelto [:gsvelto] from comment #0)

A quick test on dump_syms shows that it would shrink down from ~16MiB to ~10MiB. Not bad!

That's the uncompressed size, though. Compressed, the dump_syms archive is 5.5M, and stripped, it's 4.1MB. That's a 25% reduction, instead of 38%. Not bad, but less enticing considering...

We should try the others, the savings are probably worth it unless we have a good reason to keep the executables un-stripped (backtraces maybe?).

... yes, less useful backtraces.
Also, the sum of all the rust-based toolchains we have is dwarfed by e.g. clang.

IOW, I don't think it's worth doing.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.