-
-
Notifications
You must be signed in to change notification settings - Fork 661
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
exa --tree --all --git-ignore is extremely slow #385
Comments
@ahmedelgabri Does the second invocation actually respect |
Just checked now & yes, it doesn't respect |
Relatedly, a plain
I suppose there is some room for improvement. |
|
I tested with tootsuite/mastodon, I tried with current stable version and stopped it after waiting for 3m30, but now:
@ahmedelgabri do you think can build exa from source and tell us if it’s fixed for you? |
These are my results testing against the same repo as @ariasuni (tootsuite/mastodon), I use nix to install exa which already builds from source. It's much much better than before for sure.
|
Are any of the original performance issues discussed in #234 (comment) resolved?
Currently, for simply showing large trees, I use fd via:
and just pipe it into either Of course, this lacks support for extra details in % hyperfine --warmup 3 'tree | wc -l' 'exa --tree | wc -l' 'fd -I . | tree --fromfile . | wc -l'
Benchmark #1: tree | wc -l
Time (mean ± σ): 4.895 s ± 0.157 s [User: 1.600 s, System: 3.207 s]
Range (min … max): 4.727 s … 5.150 s 10 runs
Benchmark #2: exa --tree | wc -l
Time (mean ± σ): 5.857 s ± 0.086 s [User: 1.931 s, System: 6.765 s]
Range (min … max): 5.766 s … 6.036 s 10 runs
Benchmark #3: fd -I . | tree --fromfile . | wc -l
Time (mean ± σ): 1.000 s ± 0.018 s [User: 1.718 s, System: 1.784 s]
Range (min … max): 0.965 s … 1.028 s 10 runs
Summary
'fd -I . | tree --fromfile . | wc -l' ran
4.89 ± 0.18 times faster than 'tree | wc -l'
5.86 ± 0.14 times faster than 'exa --tree | wc -l'
% tree | wc -l
380720
% fd -I . | tree --fromfile . | wc -l
380720
% exa --tree | wc -l
380718 |
@ahmedelgabri When I wrote «build exa from source», I meant «build exa from the latest source». Anyway, now that 0.10.0 is released, could you try and tell me if it fixed the problem for you? |
Dear @ahmedelgabri in my case, before prev 0.10.0 it works fast,
thank you. |
I ran the same exact test I ran earlier #385 (comment) & for me, there is a big & clear improvement between Worth mentioning that I'm testing this on a 6 years old machine MacBook Pro (Retina, 15-inch, Mid 2015) So I expect it might be even faster on new hardware.
So I'm closing this issue as it already fixed the issue for me. And thanks to everyone for the help! |
exa --tree --all
works but slowexa --tree --git-ignore
works & fastexa --tree --all --git-ignore
I had to kill it after 30sec.I ran this on my dotfiles, but keep in mind that some folders contain lots of generated files on desk that are not commited or being part of the repo. That's why I wanted to try
--git-ignore
The text was updated successfully, but these errors were encountered: