netty5/example/src/main/java/io/netty/example
Dmitriy Dumanskiy b7ceeb1797 Compare HttpMethod by reference (#8815)
Motivation:

In most cases, HttpMethod instance is built from the factory method and the same instance is taken for known Http Methods. So we can implement fast path for equals().

Modification:

Replace == checks with HttpMethod.equals;
Use this == o within HttpMethod.equals;
Replaced known new HttpMethod with HttpMethod.valueOf;
Result:

Comparisons should be a bit faster in some cases.
2019-01-30 21:17:24 +01:00
..
discard migrate java8: use lambda and method reference (#8781) 2019-01-29 14:06:05 +01:00
echo Decouple EventLoop details from the IO handling for each transport to… (#8680) 2019-01-23 08:32:05 +01:00
factorial migrate java8: use lambda and method reference (#8781) 2019-01-29 14:06:05 +01:00
file Decouple EventLoop details from the IO handling for each transport to… (#8680) 2019-01-23 08:32:05 +01:00
http Compare HttpMethod by reference (#8815) 2019-01-30 21:17:24 +01:00
http2 migrate java8: use lambda and method reference (#8781) 2019-01-29 14:06:05 +01:00
localecho Decouple EventLoop details from the IO handling for each transport to… (#8680) 2019-01-23 08:32:05 +01:00
memcache/binary Decouple EventLoop details from the IO handling for each transport to… (#8680) 2019-01-23 08:32:05 +01:00
objectecho Decouple EventLoop details from the IO handling for each transport to… (#8680) 2019-01-23 08:32:05 +01:00
ocsp Update to new checkstyle plugin (#8777) 2019-01-24 16:24:19 +01:00
portunification Decouple EventLoop details from the IO handling for each transport to… (#8680) 2019-01-23 08:32:05 +01:00
proxy migrate java8: use lambda and method reference (#8781) 2019-01-29 14:06:05 +01:00
qotm Decouple EventLoop details from the IO handling for each transport to… (#8680) 2019-01-23 08:32:05 +01:00
redis migrate java8: use lambda and method reference (#8781) 2019-01-29 14:06:05 +01:00
sctp Decouple EventLoop details from the IO handling for each transport to… (#8680) 2019-01-23 08:32:05 +01:00
securechat migrate java8: use lambda and method reference (#8781) 2019-01-29 14:06:05 +01:00
socksproxy migrate java8: use lambda and method reference (#8781) 2019-01-29 14:06:05 +01:00
spdy Decouple EventLoop details from the IO handling for each transport to… (#8680) 2019-01-23 08:32:05 +01:00
stomp Decouple EventLoop details from the IO handling for each transport to… (#8680) 2019-01-23 08:32:05 +01:00
telnet Decouple EventLoop details from the IO handling for each transport to… (#8680) 2019-01-23 08:32:05 +01:00
uptime migrate java8: use lambda and method reference (#8781) 2019-01-29 14:06:05 +01:00
worldclock Decouple EventLoop details from the IO handling for each transport to… (#8680) 2019-01-23 08:32:05 +01:00