netty5/codec-haproxy/src/main/java/io/netty/handler/codec/haproxy
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
..
HAProxyCommand.java Overall refactoring of the haproxy codec 2014-06-21 16:00:27 +09:00
HAProxyConstants.java Overall refactoring of the haproxy codec 2014-06-21 16:00:27 +09:00
HAProxyMessage.java Fix typos in javadocs (#9527) 2019-10-09 15:25:41 +02:00
HAProxyMessageDecoder.java Remove the intermediate List from ByteToMessageDecoder (and sub-class… (#8626) 2019-12-16 21:00:32 +01:00
HAProxyProtocolException.java Overall refactoring of the haproxy codec 2014-06-21 16:00:27 +09:00
HAProxyProtocolVersion.java fix the typos 2017-04-20 04:56:09 +02:00
HAProxyProxiedProtocol.java fix the typos 2017-04-20 04:56:09 +02:00
HAProxySSLTLV.java Added PROXY Protocol TLV support 2017-06-07 09:09:29 -07:00
HAProxyTLV.java migrate java8: use requireNonNull (#8840) 2019-02-04 10:32:25 +01:00
package-info.java Move haproxy codec to a separate module 2014-06-21 15:59:21 +09:00