projects
/
rust-lightning
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from:
a5adda1
)
Avoid taking the peers write lock during event processing
author
Matt Corallo
<git@bluematt.me>
Sat, 25 Sep 2021 22:24:23 +0000
(22:24 +0000)
committer
Matt 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