Home GnuPG
Diffusion GnuPG 1189df2cd7d4

assuan: Use exponential decay for first 1s of spinlock.

Description

assuan: Use exponential decay for first 1s of spinlock.

* common/asshelp.c (wait_for_sock): instead of checking the socket
every second, we check 10 times in the first second (with exponential
decay).

This cuts the wall clock time for the standard test suite roughly by
half.

(cherry picked from commit 149041b0b917f4298239fe18b5ebd5ead71584a6)

  • GnuPG-bug-id: T3490
  • Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>

Details

Provenance
dkgAuthored on Nov 8 2017, 4:26 PM
wernerCommitted on Aug 28 2018, 4:41 PM
Parents
rGa22a55b994e0: assuan: Reorganize waiting for socket.
Branches
Unknown
Tags
Unknown
Tasks
T3490: "gpgconf --launch gpg-agent" should not take a full second if the agent isn't already started