Skip to content
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

Feature Optimize Pinger #25

Merged
merged 3 commits into from
Sep 8, 2023
Merged

Feature Optimize Pinger #25

merged 3 commits into from
Sep 8, 2023

Conversation

cortze
Copy link
Owner

@cortze cortze commented Jun 12, 2023

Description

After disabling the QUIC as the main transport, the profiling showed that up to 40% of the CPU usage was caused to the StringB58() conversion when we checked if the PR Holder was already connected. This PR removes that heavy iteration closing all the connections after they are performed.

The PR also includes a Custom Dial Ranker that prioritizes TCP over QUIC at the moment of starting a connection, using it only if the TCP connection fails

@cortze cortze merged commit b06e5f9 into master Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant