The source project of this merge request has been removed.
Draft: SSU low latency improvements
This MR contains the following changes:
- Rewrites ACKSender to not
sleep
but insteadwait
the minimum amount of time until the next ack which is to be sent. - Changes the calculation in
ackFrequency(..)
when the next ack is due to the minimum ofrtt/2
and the constant. - Reduces contention on
PeerState
by introducing a lock just for the_sendWindowBytesRemaining
field.
It has tested in the testnet with various artificial delays. For links with less than 50ms RTT there are significant improvements. I estimate that is 10% of the SSU links in the live net.
Edited by Zlatin Balevsky