Skip to content

Commit 2caba12

Browse files
author
Stephan Dilly
committed
improve runtime in debug builds significantly (closes #445)
1 parent add447d commit 2caba12

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Cargo.toml

+7
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ textwrap = "0.13"
4444
[target.'cfg(target_os = "linux")'.dependencies]
4545
which = "4.0"
4646

47+
# pprof is not available on windows
4748
[target.'cfg(not(windows))'.dependencies]
4849
pprof = { version = "0.3", features = ["flamegraph"], optional = true }
4950

@@ -64,3 +65,9 @@ members=[
6465
lto = true
6566
opt-level = 'z' # Optimize for size.
6667
codegen-units = 1
68+
69+
# make debug build as fast as release
70+
# usage of utf8 encoding inside tui
71+
# makes their debug profile slow
72+
[profile.dev.package."tui"]
73+
opt-level = 3

0 commit comments

Comments
 (0)