emacs-devel
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]