assuan: Use exponential decay for first 1s of spinlock.
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Wed, 8 Nov 2017 15:26:40 +0000 (16:26 +0100)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Thu, 19 Jul 2018 18:02:31 +0000 (19:02 +0100)
commit936008bdb953aa00ea55d705233f41738497917f
treed0dbb26ea9e97f420c1dc7e9945841c7760fc3c7
parent325733972c8f220194c6995e05ab03bdd4f527f7
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.

GnuPG-bug-id: 3490
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
(cherry picked from commit 149041b0b917f4298239fe18b5ebd5ead71584a6)

Gbp-Pq: Topic from-master
Gbp-Pq: Name assuan-Use-exponential-decay-for-first-1s-of-spinlock.patch
common/asshelp.c