netty5/buffer
Dmitry Konstantinov 913cae6fef
Optimize log2 in PoolThreadCache (#10128)
Motivation:
The current implementation of log2 in PoolThreadCache uses a loop and less efficient than an version based on Integer.numberOfLeadingZeros (intrinsic).

Modifications:
Replace the current log2 implementation in PoolThreadCache with a version based on Integer.numberOfLeadingZeros

Result:
It can improve performance slightly during allocation and de-allocation of ByteBuf using pooled allocator.
2020-03-24 11:13:52 +01:00
..
src Optimize log2 in PoolThreadCache (#10128) 2020-03-24 11:13:52 +01:00
pom.xml [maven-release-plugin] prepare for next development iteration 2020-03-17 09:20:54 +00:00