netty5/codec/src/main/java/io/netty/handler/codec
Norman Maurer fd0d06ee39
Replace reflection usage with MethodHandles when performance matters (#10097)
Motivation:

As we have java8 as a minimum target we can use MethodHandles. We should do so when we expect to have a method called multiple times.

Modifications:

- Replace usage of reflection with MethodHandles where it makes sense
- Remove some code which was there to support java < 8

Result:

Faster code
2020-03-11 21:04:40 +01:00
..
base64 Remove the intermediate List from ByteToMessageDecoder (and sub-class… (#8626) 2019-12-16 21:00:32 +01:00
bytes Remove the intermediate List from ByteToMessageDecoder (and sub-class… (#8626) 2019-12-16 21:00:32 +01:00
compression Replace reflection usage with MethodHandles when performance matters (#10097) 2020-03-11 21:04:40 +01:00
json Remove the intermediate List from ByteToMessageDecoder (and sub-class… (#8626) 2019-12-16 21:00:32 +01:00
marshalling Remove the intermediate List from ByteToMessageDecoder (and sub-class… (#8626) 2019-12-16 21:00:32 +01:00
protobuf Remove the intermediate List from ByteToMessageDecoder (and sub-class… (#8626) 2019-12-16 21:00:32 +01:00
serialization Remove the intermediate List from ByteToMessageDecoder (and sub-class… (#8626) 2019-12-16 21:00:32 +01:00
string Remove the intermediate List from ByteToMessageDecoder (and sub-class… (#8626) 2019-12-16 21:00:32 +01:00
xml Remove the intermediate List from ByteToMessageDecoder (and sub-class… (#8626) 2019-12-16 21:00:32 +01:00
AsciiHeadersEncoder.java migrate java8: use requireNonNull (#8840) 2019-02-04 10:32:25 +01:00
ByteToMessageCodec.java Remove the intermediate List from ByteToMessageDecoder (and sub-class… (#8626) 2019-12-16 21:00:32 +01:00
ByteToMessageDecoder.java Ensure the DefaultChannelHandlerContext is unlinked once removed (#9970) 2020-03-01 08:13:33 +01:00
CharSequenceValueConverter.java Fix CharSequenceValueConverter.convertToByte implementation for AsciiString (#7994) 2018-06-01 21:15:08 +02:00
CodecException.java Remove apiviz tags - we are focusing on user guide instead and putting diagrams there 2013-02-14 12:09:16 -08:00
CodecOutputList.java migrate java8: use requireNonNull (#8840) 2019-02-04 10:32:25 +01:00
CorruptedFrameException.java Remove apiviz tags - we are focusing on user guide instead and putting diagrams there 2013-02-14 12:09:16 -08:00
DatagramPacketDecoder.java Remove the intermediate List from ByteToMessageDecoder (and sub-class… (#8626) 2019-12-16 21:00:32 +01:00
DatagramPacketEncoder.java Allow null sender when using DatagramPacketEncoder (#9204) 2019-06-03 08:44:48 +02:00
DateFormatter.java migrate java8: use requireNonNull (#8840) 2019-02-04 10:32:25 +01:00
DecoderException.java fix the typos 2017-04-20 04:56:09 +02:00
DecoderResult.java migrate java8: use requireNonNull (#8840) 2019-02-04 10:32:25 +01:00
DecoderResultProvider.java Introduce MessageAggregator and DecoderResultProvider 2014-06-05 16:51:14 +09:00
DefaultHeaders.java DefaultHeaders#valueIterator doesn't remove from the in bucket list (#9090) 2019-04-27 21:16:04 +02:00
DefaultHeadersImpl.java HTTP/2 Headers Type Updates 2015-10-30 15:29:44 -07:00
DelimiterBasedFrameDecoder.java Remove the intermediate List from ByteToMessageDecoder (and sub-class… (#8626) 2019-12-16 21:00:32 +01:00
Delimiters.java Merge MessageBufs and ByteBufs into Unpooled 2012-06-11 17:02:29 +09:00
EmptyHeaders.java EmptyHeaders get with default value returns null 2018-03-19 17:54:26 +01:00
EncoderException.java Remove apiviz tags - we are focusing on user guide instead and putting diagrams there 2013-02-14 12:09:16 -08:00
FixedLengthFrameDecoder.java Remove the intermediate List from ByteToMessageDecoder (and sub-class… (#8626) 2019-12-16 21:00:32 +01:00
Headers.java Fix javadoc issues 2017-02-22 07:31:07 +01:00
HeadersUtils.java migrate java8: use requireNonNull (#8840) 2019-02-04 10:32:25 +01:00
LengthFieldBasedFrameDecoder.java Remove the intermediate List from ByteToMessageDecoder (and sub-class… (#8626) 2019-12-16 21:00:32 +01:00
LengthFieldPrepender.java migrate java8: use requireNonNull (#8840) 2019-02-04 10:32:25 +01:00
LineBasedFrameDecoder.java Remove the intermediate List from ByteToMessageDecoder (and sub-class… (#8626) 2019-12-16 21:00:32 +01:00
MessageAggregationException.java Introduce MessageAggregator and DecoderResultProvider 2014-06-05 16:51:14 +09:00
MessageAggregator.java Remove the intermediate List from ByteToMessageDecoder (and sub-class… (#8626) 2019-12-16 21:00:32 +01:00
MessageToByteEncoder.java Merge ChannelInboundHandler and ChannelOutboundHandler into ChannelHa… (#8957) 2019-03-28 09:28:27 +00:00
MessageToMessageCodec.java Remove the intermediate List from ByteToMessageDecoder (and sub-class… (#8626) 2019-12-16 21:00:32 +01:00
MessageToMessageDecoder.java Cleanup usage of Channel*Handler (#9959) 2020-01-20 17:47:17 -08:00
MessageToMessageEncoder.java Merge ChannelInboundHandler and ChannelOutboundHandler into ChannelHa… (#8957) 2019-03-28 09:28:27 +00:00
PrematureChannelClosureException.java Code clean-up based on IntelliJ code analysis 2012-06-11 22:54:28 +09:00
ProtocolDetectionResult.java Update ProtocolDetectionResult to fix typo (#10086) 2020-03-05 12:44:18 +01:00
ProtocolDetectionState.java Add ProtocolDetectionResult and use it in HAProxyMessageDecoder for allow detect HAProxy protocol. 2015-06-23 08:59:07 +02:00
ReplayingDecoder.java Remove the intermediate List from ByteToMessageDecoder (and sub-class… (#8626) 2019-12-16 21:00:32 +01:00
ReplayingDecoderByteBuf.java optimize some code (#9289) 2019-06-28 13:49:24 +02:00
TooLongFrameException.java Remove apiviz tags - we are focusing on user guide instead and putting diagrams there 2013-02-14 12:09:16 -08:00
UnsupportedMessageTypeException.java Add a lot of javadocs to make usage more clear 2012-12-21 22:22:40 +01:00
UnsupportedValueConverter.java HTTP/2 Headers Type Updates 2015-10-30 15:29:44 -07:00
ValueConverter.java Headers Performance Boost and Interface Simplification 2015-08-17 08:50:11 -07:00
package-info.java Remove apiviz tags - we are focusing on user guide instead and putting diagrams there 2013-02-14 12:09:16 -08:00