mirror of
https://github.com/extrawurst/gitui.git
synced 2024-11-26 03:00:03 +03:00
improve runtime in debug builds significantly (closes #445)
This commit is contained in:
parent
74aeed8544
commit
b7caf1cac7
@ -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
|
Loading…
Reference in New Issue
Block a user