Skip to content

Commit 2488f50

Browse files
authored
test: optimize backtrace deps (#12140)
Capturing a backtrace for the first time takes about a full second in forge tests on my machine since it has to read debug info and whatever. Optimizing these deps brings it down to ~100ms. This happens when any eyre error is created, even if not displayed, since it captures the backtrace at the creation place.
1 parent 812ac07 commit 2488f50

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,11 @@ rand.opt-level = 3
154154
rand_chacha.opt-level = 3
155155
ppv-lite86.opt-level = 3
156156

157+
# Backtraces.
158+
addr2line.opt-level = 3
159+
backtrace.opt-level = 3
160+
gimli.opt-level = 3
161+
157162
# Forking.
158163
axum.opt-level = 3
159164

0 commit comments

Comments
 (0)