netty5/codec-http
Norman Maurer 8f7ca2b4ef
Reuse the same allocator as used by the ByteBuf that is used during… (#10226)
Motivation:

We should not use Unpooled to allocate buffers if possible to ensure we can make use of pooling etc.

Modifications:

- Only allocate a buffer if really needed
- Use the ByteBufAllocator of the offered ByteBuf
- Ensure we not use buffer.copy() but explicitly allocate a buffer and then copy into it to not hit the limit of maxCapacity()

Result:

Improve allocations
2020-04-29 14:39:14 +02:00
..
src Reuse the same allocator as used by the ByteBuf that is used during… (#10226) 2020-04-29 14:39:14 +02:00
pom.xml [maven-release-plugin] prepare for next development iteration 2020-04-22 09:57:54 +00:00