Change 87ec2f882af36a4f14e2a3e3f1e2346bad848e7d by norman_maurer (2 files):
Reduce overhead by ByteBufUtil.decodeString(...) which is used by `AbstractByteBuf.toString(...)` and `AbstractByteBuf.getCharSequence(...)` (#8388)
Motivation:
Our current implementation that is used for toString(Charset) operations on AbstractByteBuf implementation is quite slow as it does a lot of uncessary memory copies. We should just use new String(...) as it has a lot of optimizations to handle these cases.
Modifications:
Rewrite ByteBufUtil.decodeString(...) to use new String(...)