Class LogarithmicArrayByteBufferPool

java.lang.Object
org.eclipse.jetty.io.ArrayByteBufferPool
org.eclipse.jetty.io.LogarithmicArrayByteBufferPool
All Implemented Interfaces:
ByteBufferPool, Dumpable

public class LogarithmicArrayByteBufferPool extends ArrayByteBufferPool
Extension of the ArrayByteBufferPool whose bucket sizes increase exponentially instead of linearly. Each bucket will be double the size of the previous bucket, this decreases the amounts of buckets required which can lower total memory usage if buffers are often being acquired of different sizes. However as there are fewer buckets this will also increase the contention on each bucket.