Skip to content

Commit 3075cc3

Browse files
committed
std: Don't emit debuginfo for backtrace deps
This was evaluated in #74560 and shown to have a positive effect on some of the regressions originally reported from #73441. While it doesn't recover all of the lost ground this is hopefully an easy enough knob to tweak that we don't have worry too much about it later.
1 parent 1fa54ad commit 3075cc3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Cargo.toml

+12
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,18 @@ overflow-checks = false
5555
# per-crate configuration isn't specifiable in the environment.
5656
codegen-units = 10000
5757

58+
# These dependencies of the standard library implement symbolication for
59+
# backtraces on most platforms. Their debuginfo causes both linking to be slower
60+
# (more data to chew through) and binaries to be larger without really all that
61+
# much benefit. This section turns them all to down to have no debuginfo which
62+
# helps to improve link times a little bit.
63+
[profile.release.package]
64+
addr2line.debug = 0
65+
adler.debug = 0
66+
gimli.debug = 0
67+
miniz_oxide.debug = 0
68+
object.debug = 0
69+
5870
# We want the RLS to use the version of Cargo that we've got vendored in this
5971
# repository to ensure that the same exact version of Cargo is used by both the
6072
# RLS and the Cargo binary itself. The RLS depends on Cargo as a git repository

0 commit comments

Comments
 (0)