BUG-3128: cache ActorSelections 57/51257/3
authorRobert Varga <rovarga@cisco.com>
Tue, 17 Jan 2017 22:58:01 +0000 (23:58 +0100)
committerRobert Varga <rovarga@cisco.com>
Wed, 1 Feb 2017 12:56:00 +0000 (13:56 +0100)
commit1b164355ea2d868bcc92052ce78160f5244231f2
treef0e0b49c1c0dd18a5d7833bd8e77c0936d855b15
parentcf005e61579cc0848b2f76524db84aa7a65de178
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>
(cherry picked from commit 8426e7a67b1235e8ecc67b1a98a5bd096c88e729)
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