Skip to content

Commit 0376ed3

Browse files
authored
Fix slowness in big repo revlog tab (#1849)
1 parent 8c17715 commit 0376ed3

File tree

6 files changed

+6
-239
lines changed

6 files changed

+6
-239
lines changed

Cargo.lock

-190
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

-4
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ unicode-truncate = "0.2"
5151
unicode-width = "0.1"
5252
which = "4.4"
5353

54-
# pprof is not available on windows
55-
[target.'cfg(not(windows))'.dependencies]
56-
pprof = { version = "0.12", features = ["flamegraph"], optional = true }
57-
5854
[dev-dependencies]
5955
pretty_assertions = "1.4"
6056
tempfile = "3.4"

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ARGS=-l
66
# ARGS=-l -d ~/code/git-bare-test.git -w ~/code/git-bare-test
77

88
profile:
9-
cargo run --features=timing,pprof -- ${ARGS}
9+
sudo CARGO_PROFILE_RELEASE_DEBUG=true cargo flamegraph --features timing -- ${ARGS}
1010

1111
run-timing:
1212
cargo run --features=timing --release -- ${ARGS}
@@ -29,7 +29,7 @@ release-win: build-release
2929
tar -C ./target/release/ -czvf ./release/gitui-win.tar.gz ./gitui.exe
3030
cargo install cargo-wix --version 0.3.3
3131
cargo wix -p gitui --no-build --nocapture --output ./release/gitui.msi
32-
ls -l ./release/gitui.msi
32+
ls -l ./release/gitui.msi
3333

3434
release-linux-musl: build-linux-musl-release
3535
strip target/x86_64-unknown-linux-musl/release/gitui

src/main.rs

-4
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ mod keys;
3838
mod notify_mutex;
3939
mod options;
4040
mod popup_stack;
41-
mod profiler;
4241
mod queue;
4342
mod spinner;
4443
mod string_utils;
@@ -66,7 +65,6 @@ use crossterm::{
6665
};
6766
use input::{Input, InputEvent, InputState};
6867
use keys::KeyConfig;
69-
use profiler::Profiler;
7068
use ratatui::{
7169
backend::{Backend, CrosstermBackend},
7270
Terminal,
@@ -127,8 +125,6 @@ fn main() -> Result<()> {
127125

128126
let cliargs = process_cmdline()?;
129127

130-
let _profiler = Profiler::new();
131-
132128
asyncgit::register_tracing_logging();
133129

134130
if !valid_path(&cliargs.repo_path) {

0 commit comments

Comments
 (0)