BUG-3128: cache ActorSelections 84/50584/12
authorRobert Varga <rovarga@cisco.com>
Tue, 17 Jan 2017 22:58:01 +0000 (23:58 +0100)
committerRobert Varga <rovarga@cisco.com>
Mon, 30 Jan 2017 13:52:44 +0000 (14:52 +0100)
commit8426e7a67b1235e8ecc67b1a98a5bd096c88e729
tree439be35d506cdb08c83c7e015f6466f39a02fa72
parent2418a6052d7eba917d5972f0630cf746d22f690c
BUG-3128: cache ActorSelections

This is a performance optimization. Since the ActorSelection
for a remote node is an invariant, keep a handy cache of
these objects so we do not have to construct them on every
GossipTick.

Change-Id: I820c1d9be5c198a6cac7932b0de0e0776b35b0a5
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-remoterpc-connector/src/main/java/org/opendaylight/controller/remote/rpc/registry/gossip/Gossiper.java
opendaylight/md-sal/sal-remoterpc-connector/src/test/java/org/opendaylight/controller/remote/rpc/registry/gossip/GossiperTest.java