[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dired and ls
From: |
Lars Ingebrigtsen |
Subject: |
Re: dired and ls |
Date: |
Sun, 21 Feb 2016 13:10:41 +1100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Eli Zaretskii <address@hidden> writes:
>> If we instead had `directory-files-with-attributes' in C, we could just
>> do what "ls" does, which is... opening the directory, reading it, and
>> then statting all the files.
>
> ls-lisp already uses directory-files-with-attributes.
Aha. I didn't know about `directory-files-and-attributes'. And it,
indeed, just reads the directory and then stats all the files...
>> So it should be just as fast? I think?
>
> You should measure it, instead of trying to reason about that. IME,
> reasoning about relative timings of programs is never a good idea,
> because measurements always produce surprising results.
Sure. But it helps talking about stuff before starting to do the real
work...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- Re: Human-readable file sorting, (continued)
- dired and ls (was: Human-readable file sorting), Lars Ingebrigtsen, 2016/02/20
- Re: dired and ls, John Wiegley, 2016/02/20
- Re: dired and ls, Lars Ingebrigtsen, 2016/02/20
- Re: dired and ls, John Wiegley, 2016/02/20
- Re: dired and ls (was: Human-readable file sorting), Eli Zaretskii, 2016/02/20
- Re: dired and ls, John Wiegley, 2016/02/20
- Re: dired and ls, Eli Zaretskii, 2016/02/20
- Re: dired and ls, John Wiegley, 2016/02/20
- Re: dired and ls,
Lars Ingebrigtsen <=
- Re: Human-readable file sorting, Eli Zaretskii, 2016/02/20
- Re: Human-readable file sorting, Lars Ingebrigtsen, 2016/02/20
- Re: Human-readable file sorting, Eli Zaretskii, 2016/02/20
- Re: Human-readable file sorting, Lars Ingebrigtsen, 2016/02/20
- Re: Human-readable file sorting, Eli Zaretskii, 2016/02/20
- Re: Human-readable file sorting, Lars Ingebrigtsen, 2016/02/20
- Re: Human-readable file sorting, Richard Stallman, 2016/02/21
- Re: Human-readable file sorting, Lars Ingebrigtsen, 2016/02/21
- Re: Human-readable file sorting, Richard Stallman, 2016/02/22
- Re: Human-readable file sorting, Pierpaolo Bernardi, 2016/02/22