netty5/codec-http2/src/test/java/io/netty
Nikolay Fedorovskikh ba27456653 Use the index-based AsciiString constructor instead of substring()
Motivation:
The construction `new AsciiString(string.substring(...))` can be replaced with the `new AsciiString(string, start, length)` to avoid extra allocation.

Modifications:
Apply the described replacement in `HttpConversionUtil#setHttp2Authority`.

Result:
Less allocations.
2017-08-18 09:48:05 +02:00
..
handler/codec/http2 Use the index-based AsciiString constructor instead of substring() 2017-08-18 09:48:05 +02:00