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

[P2P] Do not fully sort all nodes for addr relay #2849

Merged
merged 1 commit into from
May 21, 2023

Conversation

Liquid369
Copy link
Member

This PR offers some performance improvement when dealing with peers and networking. Rather than creating a map of every address being relayed and picking the top ones, we can just compute the top ones directly. This will save a good amount of the heavy computation and leave it to a quote artimethic

bitcoin#8690

@Liquid369 Liquid369 self-assigned this Apr 15, 2023
panleone
panleone previously approved these changes Apr 17, 2023
Copy link

@panleone panleone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK 8bafca1
just one comment but not blocking

src/net_processing.cpp Outdated Show resolved Hide resolved
@panleone
Copy link

squash the two commits please

@Liquid369
Copy link
Member Author

Handled. Wanted to be able to hit "resolve" before force pushing 👍 haha

Copy link

@panleone panleone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK 664b535

@Fuzzbawls Fuzzbawls added this to the 6.0.0 milestone May 2, 2023
Copy link
Collaborator

@Fuzzbawls Fuzzbawls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 664b535

@Fuzzbawls Fuzzbawls merged commit 39656e3 into PIVX-Project:master May 21, 2023
@Fuzzbawls Fuzzbawls modified the milestones: 6.0.0, 5.6.0 Feb 6, 2024
@Fuzzbawls Fuzzbawls changed the title Do not fully sort all nodes for addr relay [P2P] Do not fully sort all nodes for addr relay Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants