Efficent batch fetching with verification?

Werner Koch wk at gnupg.org
Sat Nov 4 19:15:47 CET 2017


On Sat,  4 Nov 2017 06:06, robbat2 at gentoo.org said:

> Yes, the older versions do perform much worse, but even with gnupg2.2,
> each exec of gpg is still at least 100ms, which adds up over time.

I doubt that, let's see:

  $ time sh -c 'seq 1 1 | xargs -n 1 gpg --version >/dev/null'
  
  real    0m0.010s
  user    0m0.004s
  sys     0m0.004s
  $ time sh -c 'seq 1 100 | xargs -n 1 gpg --version >/dev/null'
  
  real    0m0.361s
  user    0m0.068s
  sys     0m0.024s

This is less than 4ms per exec.  So you problem is for sure not the
fork/exec.


Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20171104/1078338c/attachment.sig>


More information about the Gnupg-users mailing list