netty5/testsuite-autobahn/src/main/java/io/netty/testsuite/autobahn
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
..
AutobahnServer.java Decouple EventLoop details from the IO handling for each transport to… (#8680) 2019-01-23 08:32:05 +01:00
AutobahnServerHandler.java Compare HttpMethod by reference (#8815) 2019-01-30 21:17:24 +01:00
AutobahnServerInitializer.java Move AutobahnTestsuite to extra module 2017-02-21 10:13:31 +01:00
package-info.java Move AutobahnTestsuite to extra module 2017-02-21 10:13:31 +01:00