[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#71094: [PATCH] Prefer to run find and grep in parallel in rgrep
|
From: |
Eli Zaretskii |
|
Subject: |
bug#71094: [PATCH] Prefer to run find and grep in parallel in rgrep |
|
Date: |
Wed, 22 May 2024 21:30:27 +0300 |
> From: Manuel Giraud <manuel@ledu-giraud.fr>
> Cc: Dmitry Gutov <dmitry@gutov.dev>, sbaugh@janestreet.com,
> 71094@debbugs.gnu.org, rgm@gnu.org
> Date: Wed, 22 May 2024 20:06:44 +0200
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> [...]
>
> >> >> So here is another example: a Linux kernel checkout (76K files). Also
> >> >> about 30% improvement: 1.40s vs 2.00s.
> >> >
> >> > This is all highly system-dependent.
> >>
> >> Naturally. So it'd be great to see some additional data points from
> >> users on other systems.
> >>
> >> Especially those where the default limit is lower than it is on mine.
> >
> > I'd be happy if someone could time these methods on MS-Windows and on
> > some *BSD system, at least. Bonus points for macOS.
>
> I'm not sure it is what you asked for but here is some numbers on
> OpenBSD (native 'find' and 'xargs'):
>
> $ time find ~/emacs-repo -type f -exec grep foo {} + > /dev/null
> 0m04.09s real 0m03.29s user 0m00.74s system
> $ time find ~/emacs-repo -type f -print0 | xargs -0 grep foo > /dev/null
> 0m04.10s real 0m03.45s user 0m00.66s system
>
> $ find /usr/src -type f | wc -l
> 114315
> $ time find /usr/src -type f -exec grep foo {} + > /dev/null
> 0m14.07s real 0m07.68s user 0m06.29s system
> $ time find /usr/src -type f -print0 | xargs -0 grep foo > /dev/null
> 0m13.83s real 0m07.94s user 0m06.25s system
Thanks, but we need the timings of the corresponding Emacs commands,
not the commands run from the shell prompt.
Btw, are you sure that xargs or grep don't pay attention to the fact
that their output is redirected to the null device, and do nothing?
Some variants of these commands are known to use such a trick, AFAIR.
- bug#71094: [PATCH] Prefer to run find and grep in parallel in rgrep, (continued)
- bug#71094: [PATCH] Prefer to run find and grep in parallel in rgrep, Eli Zaretskii, 2024/05/22
- bug#71094: [PATCH] Prefer to run find and grep in parallel in rgrep, Dmitry Gutov, 2024/05/22
- bug#71094: [PATCH] Prefer to run find and grep in parallel in rgrep, Eli Zaretskii, 2024/05/22
- bug#71094: [PATCH] Prefer to run find and grep in parallel in rgrep, Dmitry Gutov, 2024/05/22
- bug#71094: [PATCH] Prefer to run find and grep in parallel in rgrep, Eli Zaretskii, 2024/05/22
- bug#71094: [PATCH] Prefer to run find and grep in parallel in rgrep, Dmitry Gutov, 2024/05/22
- bug#71094: [PATCH] Prefer to run find and grep in parallel in rgrep, Eli Zaretskii, 2024/05/22
- bug#71094: [PATCH] Prefer to run find and grep in parallel in rgrep, Dmitry Gutov, 2024/05/22
- bug#71094: [PATCH] Prefer to run find and grep in parallel in rgrep, Eli Zaretskii, 2024/05/22
- bug#71094: [PATCH] Prefer to run find and grep in parallel in rgrep, Manuel Giraud, 2024/05/22
- bug#71094: [PATCH] Prefer to run find and grep in parallel in rgrep,
Eli Zaretskii <=
- bug#71094: [PATCH] Prefer to run find and grep in parallel in rgrep, Manuel Giraud, 2024/05/22
- bug#71094: [PATCH] Prefer to run find and grep in parallel in rgrep, Eli Zaretskii, 2024/05/23
- bug#71094: [PATCH] Prefer to run find and grep in parallel in rgrep, Dmitry Gutov, 2024/05/23
- bug#71094: [PATCH] Prefer to run find and grep in parallel in rgrep, Manuel Giraud, 2024/05/24
- bug#71094: [PATCH] Prefer to run find and grep in parallel in rgrep, Dmitry Gutov, 2024/05/26
- bug#71094: [PATCH] Prefer to run find and grep in parallel in rgrep, Dmitry Gutov, 2024/05/22
- bug#71094: [PATCH] Prefer to run find and grep in parallel in rgrep, Manuel Giraud, 2024/05/22
- bug#71094: [PATCH] Prefer to run find and grep in parallel in rgrep, Dmitry Gutov, 2024/05/22
bug#71094: [PATCH] Prefer to run find and grep in parallel in rgrep, Spencer Baugh, 2024/05/22