Improve withdrawn routes parsing 52/96952/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 20 Jul 2021 15:46:06 +0000 (17:46 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 20 Jul 2021 15:46:06 +0000 (17:46 +0200)
commit9f7749164374cef875969cd423912e0896b9d2cc
tree916ed4350cb997101ff9082266e010f97f6ce110
parent766073df92d59d588d42bb98c031c2c5e65909be
Improve withdrawn routes parsing

We are using readBytes() and release() to synchronously process a
buffer. Use readSlice(), which side-steps refcount manipulation,
making things a tad faster.

Change-Id: I89886868a2f45988620c6b8be8fb5a85c9df4ced
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
bgp/parser-impl/src/main/java/org/opendaylight/protocol/bgp/parser/impl/message/BGPUpdateMessageParser.java