robust-services-core icon indicating copy to clipboard operation
robust-services-core copied to clipboard

Speed up MsgPort.FindPeer

Open GregUtas opened this issue 8 years ago • 0 comments

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.

GregUtas avatar Nov 06 '17 12:11 GregUtas