Pre-size NLRI lists 24/35424/2
authorRobert Varga <robert.varga@pantheon.sk>
Thu, 25 Feb 2016 20:57:54 +0000 (21:57 +0100)
committerMilos Fabian <milfabia@cisco.com>
Fri, 26 Feb 2016 09:47:41 +0000 (09:47 +0000)
commit21b6b6dbcaa74e71ceb39492b76cc3171e5b6de0
tree8c9a574864b850f1b7c835e891788ddf4598c79c
parentf5b6727ce04f1f3224076ed316ebd19064a84b97
Pre-size NLRI lists

We have an input list, hence we know how big the output will be. Use
that to make sure we do not resize the list.

Change-Id: I6b8c9ec771416b98578820fd8b0b0d5104231c19
Signed-off-by: Robert Varga <robert.varga@pantheon.sk>
bgp/parser-impl/src/main/java/org/opendaylight/protocol/bgp/parser/impl/message/update/Ipv4NlriParser.java
bgp/parser-impl/src/main/java/org/opendaylight/protocol/bgp/parser/impl/message/update/Ipv6NlriParser.java