Re: [PATCH execline] Add forx -P

From: Laurent Bercot <ska-skaware_at_skarnet.org>
Date: Thu, 11 Jul 2024 18:44:25 +0000

>In my case I wanted to extract data from the aports git repository.
>Unfortunatly I only found a way which required 1 git call per directory
>so in the hope to speed up the process I tried 'forx -p':
>
>elglob -0 paths main/* forx -E -p i { ${paths} } git -P log -1 --format=%at\ ${i} -- ${i}
>
>Which made my system unresponsive for a while.

  ... yeah, git is a resource-intensive process and spawning 1500 of
them in parallel is going to get you in trouble. :D


>My change does work like '-j$maxpar' (not truncation).

  Oh ? I'll have to study it to see exactly how it works, then, and
maybe apply it. Thanks!


>On the technical side it would be nice to add the same to forstdin.

  Yes, if I apply this I'll make the equivalent change to forstdin.

--
  Laurent
Received on Thu Jul 11 2024 - 20:44:25 CEST

This archive was generated by hypermail 2.4.0 : Thu Jul 11 2024 - 20:44:53 CEST