Introduce the ReferenceCache concept 17/5117/2
authorRobert Varga <rovarga@cisco.com>
Tue, 4 Feb 2014 13:15:08 +0000 (14:15 +0100)
committerRobert Varga <rovarga@cisco.com>
Wed, 5 Feb 2014 02:51:08 +0000 (03:51 +0100)
commit2b8d434f3b121dded2ffc501e5b998a8f91f20d9
tree0f0995114b042adfcecf3094cceb9616f400f72f
parentec78a4861fe9c7b0f395e8f752afc69df1106f73
Introduce the ReferenceCache concept

This is a simple CPU/memory tradeoff primitive, which allows for sharing
of object references in the cardinality/frequency of a particular object
type is favorable. AsNumber is typical candidate.

Change-Id: I79ab163f5da32ad5f99ba99246ae96005ac03df5
Signed-off-by: Robert Varga <rovarga@cisco.com>
bgp/parser-spi/src/main/java/org/opendaylight/protocol/bgp/parser/spi/BGPExtensionProviderContext.java
bgp/parser-spi/src/main/java/org/opendaylight/protocol/bgp/parser/spi/pojo/SimpleBGPExtensionProviderContext.java
util/src/main/java/org/opendaylight/protocol/util/NoopReferenceCache.java [new file with mode: 0644]
util/src/main/java/org/opendaylight/protocol/util/ReferenceCache.java [new file with mode: 0644]