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

Speed up MsgPort.FindPeer #54

Open
GregUtas opened this issue Nov 6, 2017 · 0 comments
Open

Speed up MsgPort.FindPeer #54

GregUtas opened this issue Nov 6, 2017 · 0 comments

Comments

@GregUtas
Copy link
Owner

GregUtas commented Nov 6, 2017

It invokes MsgPortPool.FindPeerPort, which searches through all ports. A hash table that maps source addresses to destination addresses is one way to improve this. An entry would be created when a destination address was assigned to receive a source address's initial message. The entry would be deleted when the source address sent a message directly to the destination address. However, this would require a large hash table when a protocol often had a significant delay between an initial message and a subsequent message sent in the same direction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant