Skip to content
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

lsd -ltr requires a lot of time #658

Closed
vbd opened this issue May 13, 2022 · 5 comments
Closed

lsd -ltr requires a lot of time #658

vbd opened this issue May 13, 2022 · 5 comments
Assignees
Labels
kind/enhancement Enhancement on current feature

Comments

@vbd
Copy link

vbd commented May 13, 2022

  • os: Windows
  • lsd --version: 0.21.0
  • echo $TERM: -
  • echo $LS_COLORS: -

I like lsd a lot over other tools like exa but for one use case I hope it could be improved.
lsd -ltr in a folder with ~3000+ files will take ~30 seconds before output. Any chance to reduce waiting time?

@Freed-Wu
Copy link

I met a similar bug:

In windows:

Screenshot from 2022-05-14 22-01-06
Screenshot from 2022-05-14 22-01-28

In linux:

Screenshot from 2022-05-14 22-04-43

It looks lsd has heavy performance problem.

@zwpaper
Copy link
Member

zwpaper commented May 26, 2022

we found this issue previously, and there is a WIP PR, I will look into it when I have some free time

#441

@zwpaper zwpaper added the kind/enhancement Enhancement on current feature label May 26, 2022
@zwpaper zwpaper self-assigned this May 26, 2022
@planet36
Copy link

Does the problem happen without giving the -ltr options?

If so, this is a duplicate of #378

@vbd
Copy link
Author

vbd commented Sep 27, 2023

  • just tested in a directory with 60.269 files on my new computer (Windows 11 and new SSD compared to my old system)
  • lsd 1.0.0
  • used ptime (http://www.pc-tools.net/win32/) to measure execution time

lsd
Execution time: 19.957 s

lsd -ltr
Execution time: 22.760 s

@Freed-Wu
Copy link

If this is a duplicate of #378, please close this issue.

@zwpaper zwpaper closed this as completed Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Enhancement on current feature
Projects
None yet
Development

No branches or pull requests

4 participants