Pre-size NLRI lists 54/35454/1
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 10:17:57 +0000 (10:17 +0000)
commit9ae07cd9b1d10a0195811456c57aa3fea6068486
tree7771541453e81be6c70a77766c59d8fba3186e56
parent8a7657c51176d40899499531a3f020520f01b1d0
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>
(cherry picked from commit 21b6b6dbcaa74e71ceb39492b76cc3171e5b6de0)
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