netty5/common/src
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
..
main Use interval instead of mask comparison for Recycler ratio (#9748) 2019-11-05 15:21:09 +01:00
test Use interval instead of mask comparison for Recycler ratio (#9748) 2019-11-05 15:21:09 +01:00