Avoid taking the peers write lock during event processing
authorMatt Corallo <git@bluematt.me>
Sat, 25 Sep 2021 22:24:23 +0000 (22:24 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 10 May 2022 23:40:20 +0000 (23:40 +0000)
Because the peers write lock "blocks the world", and happens after
each read event, always taking the write lock has pretty severe
impacts on parallelism. Instead, here, we only take the global
write lock if we have to disconnect a peer.


No differences found