netty5/common/src/test/java/io/netty/util
Nick Hill d3011d4f5b Use interval instead of mask comparison for Recycler ratio (#9748)
Motivation

The recycling ratio is currently implemented by comparing with a masked
count. The mask operation is not free and also not necessary.

Modification

Change the count(s) to just iterate over the corresponding interval,
which requires only a comparison and no mask.

Also make "first time recycle" behaviour consistent and revert change to
RecyclerTest made in #9727.

Result

Less recycling overhead
2019-11-05 15:21:09 +01:00
..
concurrent Avoid CancellationException construction in DefaultPromise (#9534) 2019-09-05 11:10:55 +02:00
internal Fix HttpContentEncoder does not handle multiple Accept-Encoding (#9557) 2019-09-11 08:50:43 +02:00
AbstractReferenceCountedTest.java migrate java8: use lambda and method reference (#8781) 2019-01-29 14:06:05 +01:00
AsciiStringCharacterTest.java AsciiString contentEqualsIgnoreCase fails when arrayOffset is non-zero (#9477) 2019-08-17 09:57:40 +02:00
AsciiStringMemoryTest.java Java 8 migration: Use diamond operator (#8749) 2019-01-22 16:07:26 +01:00
AttributeKeyTest.java Allow to get existing ChannelOption / AttributeKey from String 2015-02-18 09:29:37 +01:00
ConstantPoolTest.java migrate java8: use lambda and method reference (#8781) 2019-01-29 14:06:05 +01:00
DefaultAttributeMapTest.java Fix misordered 'assertEquals' arguments in tests 2017-03-08 22:48:37 -08:00
DomainNameMappingTest.java Java 8 migration: Use diamond operator (#8749) 2019-01-22 16:07:26 +01:00
HashedWheelTimerTest.java migrate java8: use lambda and method reference (#8781) 2019-01-29 14:06:05 +01:00
NettyRuntimeTests.java migrate java8: use lambda and method reference (#8781) 2019-01-29 14:06:05 +01:00
NetUtilTest.java Move methods for decode hex dump into StringUtil 2017-06-23 18:52:42 +02:00
RecyclerTest.java Use interval instead of mask comparison for Recycler ratio (#9748) 2019-11-05 15:21:09 +01:00
ResourceLeakDetectorTest.java Java 8 migration: Use diamond operator (#8749) 2019-01-22 16:07:26 +01:00
ThreadDeathWatcherTest.java migrate java8: use lambda and method reference (#8781) 2019-01-29 14:06:05 +01:00