Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Following the main idea of having multiple DHT hosts to improve the concurrency performance in the tool, this PR simplifies the XOR distance method to elect the best host, as it isn't 100% ready. The new method selects the host with fewer concurrent ongoing calls as the best one.
The PR also aims to reduce the extra Memory overhead that pprof points to
![pprof002](https://private-user-images.githubusercontent.com/45786396/244325314-32bd4ca4-8de5-45a7-a782-a5f8fd531dd2.svg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NDcwNzMsIm5iZiI6MTczOTY0Njc3MywicGF0aCI6Ii80NTc4NjM5Ni8yNDQzMjUzMTQtMzJiZDRjYTQtOGRlNS00NWE3LWE3ODItYTVmOGZkNTMxZGQyLnN2Zz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDE5MTI1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRjNTJiYmRhMjlmY2ZmNjNjZTkxMTZlZmFlMGMyODQzY2I2Y2IwM2E2ZDRhMTczNWQ3MTM3OWY1NDg1Y2QwZmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.F5JPFxK_uCiIYAtf5xqWpFsC5WS4vVBlkWygeu_aWq4)
quic-go
and that has been already brought up by quic-go/quic-go#3883 . As suggested in the issue, The PR rolls back the
quic-go
version to it's0.33.0
version.