BUG-2384: improve ImmutableUnkeyedListNode efficiency 21/12821/4
authorRobert Varga <rovarga@cisco.com>
Thu, 13 Nov 2014 17:23:43 +0000 (18:23 +0100)
committerRobert Varga <rovarga@cisco.com>
Sun, 16 Nov 2014 13:54:17 +0000 (14:54 +0100)
commit8293e0f3d941e10b740197c8da2fe307419ea00c
treef51c93a1951ea7cb95eb52c8d9b40eccc9947bd0
parent59d197fc60bccd1fef2e3bef39c859f12a9c1ae8
BUG-2384: improve ImmutableUnkeyedListNode efficiency

With moderately-loaded BGP instance we are using quite a few on empty
unkeyed list nodes. The fact they are empty means we waste about 8 bytes
per instance just tracking empty list. Introduce a dedicated class to
take care of this common special case.

Change-Id: I3e94c637f5d7d47d39d274bae96850307f5c439d
Signed-off-by: Robert Varga <rovarga@cisco.com>
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/builder/impl/ImmutableUnkeyedListNodeBuilder.java