We have found out that ByteBufUtil.indexOf is inefficient for substring search, both in terms of algorithm complexity (worst case O(needle.readableBytes * haystack.readableBytes), and in constant ...