-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
P2P: Misc improvements #1040
P2P: Misc improvements #1040
Conversation
…as closed the connection
…ache synchronization. Also removed an unneeded atomic
Just curious. What led you to adding |
Just something I've been meaning to add. No, I have not measured the performance difference. |
Very cool change! |
In preparation of work for #452 some initial cleanup.
Testing with performance harness when sending more transactions than nodeos can process it fills up the write queue. This is designed to then close the connection. nodeos was generating thousands of write queue full messages (example below) because the posted
close()
call would have to wait until all the currently queued up tasks on the strand finished. This delayed the close for seconds. Added aclosing
flag to stop existing tasks quickly, resulting in only one message instead of thousands and an immediate close.Added better encapsulation of the
sync_mtx
.Added
alignas(hardware_destructive_interference_size)
to avoid cache synchronization.