Use SharedSingletonMapTemplate 18/78118/6
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 25 Nov 2018 17:21:00 +0000 (18:21 +0100)
committerRobert Varga <nite@hq.sk>
Sat, 1 Dec 2018 08:11:20 +0000 (08:11 +0000)
commit7220409ebe0ed82a23dedc0513ce07f72c9f6f22
tree5aab6a738443a55e7c95844e27af3acd6007a37f
parent315a23ea8d215ac5b29fea613f31fd35f6a6899b
Use SharedSingletonMapTemplate

We know the key statically, hence we can use more efficient maps
to hold our NodeIdentifierWithPredicates. This saves some CPU cycles
as well as produces less garbage.

JIRA: MDSAL-917
Change-Id: I55b89498ab725f8aba85f8e7f1c8bb16f0fe6565
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/entityownership/EntityOwnersModel.java

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.