From: Dmitry Gutov <dgutov@yandex.ru>
To: Zhiwei Chen <condy0919@gmail.com>
Cc: "44210@debbugs.gnu.org" <44210@debbugs.gnu.org>,
Zhiwei Chen <chenzhiwei03@kuaishou.com>
Subject: bug#44210: 28.0.50; project.el failed to work after customizing find-program to fd
Date: Mon, 18 Jan 2021 05:09:12 +0200 [thread overview]
Message-ID: <42003a7c-4d30-ed38-0916-cacb8a2bdfa9@yandex.ru> (raw)
In-Reply-To: <87ft2zgi5k.fsf@gmail.com>
Hi!
You didn't address my complaint about the ignored IGNORES argument. I
was going to explain that, but that email got sidetracked, sorry.
In any case, I can't reproduce your results even with the latest fd.
I don't have an LLVM checkout, though, just some other projects like
Linux kernel and gecko-dev. And 'find' is consistently 2x as fast here.
In any case, I can believe that fd is going to be faster on some
systems. To make it an "official" option, someone will need to write a
version of project--files-in-directory that uses fd but honors the
IGNORES argument, as well as FILES. Preferably with some tests. Then we
can make the program used switchable.
On 18.01.2021 03:15, Zhiwei Chen wrote:
>
> I think I replied to the wrong thread, so forwarded it again.
>
>> I benchmark it again on linux, where find is of 4.7.0 version and fd is of 8.2.1 version.
>>
>> Make sure the page cache is cleared before each benchmark.
>>
>>> sudo sysctl -w vm.drop_caches=3
>>
>>> cd llvm-project
>>
>>> sudo sysctl -w vm.drop_caches=3
>>> time fd > /tmp/fd_output
>> 1.04s user 4.11s system 522% cpu 0.987 total
>>
>>> sudo sysctl -w vm.drop_caches=3
>>> time find > /tmp/find_output
>> 0.06s user 0.20s system 7% cpu 3.354 total
>>
>> Since ‘fd’ is a multi-threaded program, the CPU percent is > 100%.
>
next prev parent reply other threads:[~2021-01-18 3:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-25 11:26 bug#44210: 28.0.50; project.el failed to work after customizing find-program to fd Zhiwei Chen
2020-10-26 22:37 ` Dmitry Gutov
2021-01-10 3:31 ` Zhiwei Chen
2021-01-10 3:37 ` Zhiwei Chen
2021-01-10 17:48 ` Dmitry Gutov
2021-01-18 1:15 ` Zhiwei Chen
2021-01-18 3:09 ` Dmitry Gutov [this message]
2021-01-11 13:04 ` Zhiwei Chen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42003a7c-4d30-ed38-0916-cacb8a2bdfa9@yandex.ru \
--to=dgutov@yandex.ru \
--cc=44210@debbugs.gnu.org \
--cc=chenzhiwei03@kuaishou.com \
--cc=condy0919@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.