d99a8f75b4
Use Two way algorithm to optimize ByteBufUtil.indexOf() method Motivation: ByteBufUtil.indexOf can be inefficient for substring search on ByteBuf, in terms of algorithm complexity (O(needle.readableBytes * haystack.readableBytes)), consider using the Two Way algorithm to optimize the ByteBufUtil.indexOf() method Modification: Use the Two Way algorithm to optimize ByteBufUtil.indexOf() method. Result: The performance of the ByteBufUtil.indexOf() method is higher than the original implementation |
||
---|---|---|
.. | ||
src | ||
pom.xml |