Use adaptive allocators again 06/83306/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 29 Jul 2019 16:30:38 +0000 (18:30 +0200)
committerRobert Varga <nite@hq.sk>
Mon, 29 Jul 2019 19:49:35 +0000 (19:49 +0000)
commite9a0df948963b89ecf164cc73d749e965c4ea463
treebb4de8b812255941cf14238ff9a7efc358dae386
parentd0f529cbf228485e5110679629d60765f6ec39cb
Use adaptive allocators again

This is a fixup of I865f8c2c949c226d69be8981e1070e96089b3ccb,
which restores the use of adaptive buffer allocators. While the
previous fix was a notable improvement in performance, it could
end up wasting memory on small input messages.

Change-Id: I74b5b5ddfa74b52b86ecd5ba9b9bd8779b4a9e8d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit cafb1376e7b8e8a239d3bcb08f4ee5c592e5c214)
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/BGPDispatcherImpl.java
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/BGPMessageHeaderDecoder.java