-
Notifications
You must be signed in to change notification settings - Fork 863
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempt to fix CPU spikes issue (#4867)
* Modify reattemptPendingPeerRequests implementation to not iterate on pending request. This should avoid a lot of unnecessary computation Signed-off-by: Ameziane H <[email protected]> * Fix failed unit tests. Signed-off-by: Ameziane H <[email protected]> * Fix failed unit tests Iterate over pending requests only if there is a peer with available request capacity Signed-off-by: Ameziane H <[email protected]> * Fix stream implementation (use the same stream several times) Signed-off-by: Ameziane H <[email protected]> * Spotless Signed-off-by: Ameziane H <[email protected]> * Undo reducing method visibility as it is no longer used Signed-off-by: Ameziane H <[email protected]> * use one buffered for each peer and wait to have capacity before sending request Signed-off-by: Karim TAAM <[email protected]> * fix tests Signed-off-by: Karim TAAM <[email protected]> Signed-off-by: Ameziane H <[email protected]> Signed-off-by: Karim TAAM <[email protected]> Co-authored-by: Karim TAAM <[email protected]>
- Loading branch information
Showing
6 changed files
with
53 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters