netty5/codec-http2/src/main/java
Nick Hill a0c3081d82 Reduce http2 buffer slicing (#8598)
Motivation

DefaultHttp2FrameReader currently does a fair amount of "intermediate"
slicing which can be avoided.

Modifications

Avoid slicing the input buffer in DefaultHttp2FrameReader until
necessary. In one instance this also means retainedSlice can be used
instead (which may also avoid allocating).

Results

Less allocations when using http2.
2018-11-29 19:45:52 +01:00
..
io/netty/handler/codec/http2 Reduce http2 buffer slicing (#8598) 2018-11-29 19:45:52 +01:00