Open bowenwang1996 opened 4 years ago
This issue has been automatically marked as stale because it has not had recent activity in the last 2 months. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity in the last 2 months. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
I observed two kinds of delays on testnet in the network module:
1. When we process routed messages https://github.com/nearprotocol/nearcore/blob/a480d6eb3d9c6542100efdc6364eb89daac69383/chain/network/src/peer_manager.rs#L1597 Example:
It appears that this might be related to the performance of
RouteBackCache
.2. When we send messages https://github.com/nearprotocol/nearcore/blob/a480d6eb3d9c6542100efdc6364eb89daac69383/chain/network/src/peer.rs#L209 Example:
It appears that this may have been caused by the suboptimal implementation of
Tracker
. More specifically,RateCounter
can be slow when we send or receive a lot of messages.