netty5/codec-socks/src/main/java/io/netty/handler/codec/socks
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
..
package-info.java Overall clean-up on socksx package 2014-08-14 16:41:04 -07:00
SocksAddressType.java Rename fromByte() to valueOf() 2014-06-24 16:34:52 +09:00
SocksAuthRequest.java SocksAuthRequest constructor occasionally throws IllegalStateException (#9558) 2019-09-09 21:09:43 +02:00
SocksAuthRequestDecoder.java Remove the intermediate List from ByteToMessageDecoder (and sub-class… (#8626) 2019-12-16 21:00:32 +01:00
SocksAuthResponse.java migrate java8: use requireNonNull (#8840) 2019-02-04 10:32:25 +01:00
SocksAuthResponseDecoder.java Remove the intermediate List from ByteToMessageDecoder (and sub-class… (#8626) 2019-12-16 21:00:32 +01:00
SocksAuthScheme.java Rename fromByte() to valueOf() 2014-06-24 16:34:52 +09:00
SocksAuthStatus.java Rename fromByte() to valueOf() 2014-06-24 16:34:52 +09:00
SocksCmdRequest.java migrate java8: use requireNonNull (#8840) 2019-02-04 10:32:25 +01:00
SocksCmdRequestDecoder.java Remove the intermediate List from ByteToMessageDecoder (and sub-class… (#8626) 2019-12-16 21:00:32 +01:00
SocksCmdResponse.java migrate java8: use requireNonNull (#8840) 2019-02-04 10:32:25 +01:00
SocksCmdResponseDecoder.java Remove the intermediate List from ByteToMessageDecoder (and sub-class… (#8626) 2019-12-16 21:00:32 +01:00
SocksCmdStatus.java Rename fromByte() to valueOf() 2014-06-24 16:34:52 +09:00
SocksCmdType.java Rename fromByte() to valueOf() 2014-06-24 16:34:52 +09:00
SocksCommonUtils.java SocksCommonUtils cleanup 2017-06-23 19:04:03 +02:00
SocksInitRequest.java migrate java8: use requireNonNull (#8840) 2019-02-04 10:32:25 +01:00
SocksInitRequestDecoder.java Remove the intermediate List from ByteToMessageDecoder (and sub-class… (#8626) 2019-12-16 21:00:32 +01:00
SocksInitResponse.java migrate java8: use requireNonNull (#8840) 2019-02-04 10:32:25 +01:00
SocksInitResponseDecoder.java Remove the intermediate List from ByteToMessageDecoder (and sub-class… (#8626) 2019-12-16 21:00:32 +01:00
SocksMessage.java migrate java8: use requireNonNull (#8840) 2019-02-04 10:32:25 +01:00
SocksMessageEncoder.java Deprecate SocksMessage.encodeAsByteBuf() 2014-06-24 16:40:44 +09:00
SocksMessageType.java Prettify APIviz / Tighten visibility / Move subclasses to top level / Remove unused UnknownSocksMessage 2013-02-11 19:42:23 +09:00
SocksProtocolVersion.java Rename fromByte() to valueOf() 2014-06-24 16:34:52 +09:00
SocksRequest.java migrate java8: use requireNonNull (#8840) 2019-02-04 10:32:25 +01:00
SocksRequestType.java Prettify APIviz / Tighten visibility / Move subclasses to top level / Remove unused UnknownSocksMessage 2013-02-11 19:42:23 +09:00
SocksResponse.java migrate java8: use requireNonNull (#8840) 2019-02-04 10:32:25 +01:00
SocksResponseType.java Prettify APIviz / Tighten visibility / Move subclasses to top level / Remove unused UnknownSocksMessage 2013-02-11 19:42:23 +09:00
SocksSubnegotiationVersion.java Rename fromByte() to valueOf() 2014-06-24 16:34:52 +09:00
UnknownSocksRequest.java [#787] Move the socks package to the right place 2012-12-04 09:14:05 +01:00
UnknownSocksResponse.java [#787] Move the socks package to the right place 2012-12-04 09:14:05 +01:00