From b7caf1cac78fac101671b10f5d1f8fe0fe75bf66 Mon Sep 17 00:00:00 2001 From: Stephan Dilly Date: Sat, 12 Dec 2020 14:12:12 +0100 Subject: [PATCH] improve runtime in debug builds significantly (closes #445) --- Cargo.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index e6bd1f66..9a1c1ddb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,6 +44,7 @@ textwrap = "0.13" [target.'cfg(target_os = "linux")'.dependencies] which = "4.0" +# pprof is not available on windows [target.'cfg(not(windows))'.dependencies] pprof = { version = "0.3", features = ["flamegraph"], optional = true } @@ -64,3 +65,9 @@ members=[ lto = true opt-level = 'z' # Optimize for size. codegen-units = 1 + +# make debug build as fast as release +# usage of utf8 encoding inside tui +# makes their debug profile slow +[profile.dev.package."tui"] +opt-level = 3 \ No newline at end of file