lsd icon indicating copy to clipboard operation
lsd copied to clipboard

lsd -ltr requires a lot of time

Open vbd opened this issue 2 years ago • 2 comments

  • 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?

vbd avatar May 13 '22 10:05 vbd

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.

Freed-Wu avatar May 14 '22 14:05 Freed-Wu

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

https://github.com/Peltoche/lsd/pull/441

zwpaper avatar May 26 '22 03:05 zwpaper

Does the problem happen without giving the -ltr options?

If so, this is a duplicate of https://github.com/lsd-rs/lsd/issues/378

planet36 avatar Sep 27 '23 12:09 planet36

  • 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

vbd avatar Sep 27 '23 14:09 vbd

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

Freed-Wu avatar Sep 27 '23 20:09 Freed-Wu