jonas / tig

Text-mode interface for git
https://jonas.github.io/tig/
GNU General Public License v2.0
12.41k stars 607 forks source link

tig is slow to start in large repo #1290

Open pkitszel opened 1 year ago

pkitszel commented 1 year ago

When started in large repo (linux kernel) tig takes 10s to show any content, even if started as tig -99, what limits output to just some recent history

pkitszel commented 11 months ago

it works better for me now, not sure what are dependencies that fixed that (same machine, same repo, but more commits, same tig binary from June).

nunojsa commented 10 months ago

I'm still having the same issue... I'm on fedora. It's incredibly slow hen compared to gitk for example. Would be nice to understand what could be the reason for this

nunojsa commented 10 months ago

Oh, so this is improved things a lot...

git config --global core.commitGraph true
git config --global gc.writeCommitGraph true
git commit-graph write

AFAIK, the configs are already defaulted to true so I was missing the commit-graph write... tig --all still takes around 3s to load on the linux kernel (with multiple remotes) but I guess that's acceptable