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>
Wed, 8 Nov 2017 16:55:55 +0000 (17:55 +0100)
commit149041b0b917f4298239fe18b5ebd5ead71584a6
tree9f28942aa757a13c3ca0d7f7b16c54858e13afbe
parent0471ff9d3bf8d6b9a359f3c426d70d0935066907
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>
common/asshelp.c