Cache MapJoiner 92/52892/6
authorRobert Varga <rovarga@cisco.com>
Mon, 6 Mar 2017 15:05:09 +0000 (16:05 +0100)
committerTom Pantelis <tpanteli@brocade.com>
Thu, 9 Mar 2017 14:32:13 +0000 (14:32 +0000)
commita3cecfd01d0ef8922530924e3ee9684eb03ee5d6
tree8e165a0c8be76ca8d22d5d77b50797e544145656
parent11d000a598873780b4d81e8717488ab29ab79f21
Cache MapJoiner

There is no need to instantiate the Joiner everytime we format
a map, as the instance is immmutable and thread-safe. Cache
a single object, allowing for slightly faster access.

Change-Id: Idff936f6525059d0e9abd6eae1370fd3066996a4
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/jmx/mbeans/shard/ShardStats.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.