netty5/codec-socks/src/main/java/io/netty/handler/codec/socksx
Norman Maurer 0e4c073bcf
Remove the intermediate List from ByteToMessageDecoder (and sub-class… (#8626)
Motivation:

ByteToMessageDecoder requires using an intermediate List to put results into. This intermediate list adds overhead (memory/CPU) which grows as the number of objects increases. This overhead can be avoided by directly propagating events through the ChannelPipeline via ctx.fireChannelRead(...). This also makes the semantics more clear and allows us to keep track if we need to call ctx.read() in all cases.

Modifications:

- Remove List from the method signature of ByteToMessageDecoder.decode(...) and decodeLast(...)
- Adjust all sub-classes
- Adjust unit tests
- Fix javadocs.

Result:

Adjust ByteToMessageDecoder as noted in https://github.com/netty/netty/issues/8525.
2019-12-16 21:00:32 +01:00
..
v4 Remove the intermediate List from ByteToMessageDecoder (and sub-class… (#8626) 2019-12-16 21:00:32 +01:00
v5 Remove the intermediate List from ByteToMessageDecoder (and sub-class… (#8626) 2019-12-16 21:00:32 +01:00
AbstractSocksMessage.java migrate java8: use requireNonNull (#8840) 2019-02-04 10:32:25 +01:00
package-info.java Overall clean-up on socksx package 2014-08-14 16:41:04 -07:00
SocksMessage.java Revamp io.netty.handler.codec.socksx 2015-02-10 09:14:13 +09:00
SocksPortUnificationServerHandler.java Remove the intermediate List from ByteToMessageDecoder (and sub-class… (#8626) 2019-12-16 21:00:32 +01:00
SocksVersion.java Revamp io.netty.handler.codec.socksx 2015-02-10 09:14:13 +09:00