]> git.ipfire.org Git - thirdparty/bind9.git/commit
Mangle fdlocks a bit.
authorWitold Kręcicki <wpk@isc.org>
Wed, 3 Oct 2018 22:11:52 +0000 (22:11 +0000)
committerWitold Kręcicki <wpk@isc.org>
Tue, 6 Nov 2018 11:25:09 +0000 (11:25 +0000)
commit07ef9e92a2b698e299b20a587ed28b97780bdc1b
tree407f9fed3c6d8ec2cac9b8d642c624d2b953c97d
parentef448ece04968b659f0793ef036c360970caab03
Mangle fdlocks a bit.

Mutexes are slower if they're in the same cache line. Since
fd's come in herds, and usually our listen sockets will have nearby
fd numbers, we mangle fdlocks so that the locks are further away.
lib/isc/unix/socket.c
lib/isc/win32/socket.c