delta: š delta is much slower starting with `0.10.3` (`0.11.0` included)
delta is much slower for me starting from 0.10.3. I was able to reproduce that without any gitconfig customizations.
I will try to add a docker command to reproduce this, but wanted to open an issue in case others run into this.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 2
- Comments: 59 (25 by maintainers)
Commits related to this issue
- Disable last-resort process tree inspection See #824 in which some users are reporting very slow performance. Fixes #824 — committed to dandavison/delta by dandavison 3 years ago
- Disable last-resort process tree inspection See #824 in which some users are reporting very slow performance. Fixes #824 — committed to dandavison/delta by dandavison 3 years ago
@ttys3 than you very much for your investigation! The downside of disabling that call is that delta will not be able to handle any of the following:
git diff --word-diff/git diff --color-wordsgit grepand other grepās (but it will handlerg --json)git show $commit:$filegit blamelanguage detectionSo that would be a shame, and Iād like to find a solution whereby we can do the process inspection in a way that is fast for all users.
Iāve released
0.11.2which should fix this, but with the cost that in some situations the calling process wonāt be identified (identification of calling process is needed for--word-diff/--color-words,git grep,git show $commit:$file,git blame).If anyone can confirm that the problem is not present on
0.11.2that would be great.I can definitely bisect it, shouldnāt take too long. Will get to that by tomorrow. Lease I can do to give back a little bit to fantastic OSS
I wonder what is going on with the difference between hyperfine and your shell function. Iād be interested to see each of the 10 timings that are being averaged by your shell function, to see what the distribution is like.
Iāve used your shell function, and hyperfine, on
delta src/delta.rs src/paint.rson intel and M1 MacOS and thereās no difference similar to what you see.(I did, I am fairly certain, discover the interesting but irrelevant fact that the binary from homebrew is 1.5x faster on the M1 machine than
cargo build --releaseā I want to know why!)@infokiller Iāve run your docker-based script now and yes I can reproduce your finding that delta is significantly slower when there are many processes (using āDocker Desktopā on a Mac, i.e. in a Linux VM).
And I can also reproduce it directly on my Mac:
(Is that my
cargo build --releasebinaries being slower again??)Beautiful shell script by the way, thanks! I think I will be referring back to it / using it for future delta tests.
here you go. new issue opened: https://github.com/dandavison/delta/issues/839
to avoid duplicated comment, Iāve remove those duplicated in this one.
Yep can do, will report back what I see later today. Thanks for being on top of it!
Running arch, kernel 5.15.3-arch1-1. git version 2.34.1 in case that matters