BufferConfig

cc.otavia.core.config.BufferConfig
case class BufferConfig(pageSize: Int = ..., minCache: Int = ..., maxCache: Int = ...)

Buffer allocation configuration.

Value parameters

maxCache

Maximum number of pages cached per-thread allocator. Limits memory consumption from buffer caching. Must be greater than or equal to minCache. Default is 10240.

minCache

Minimum number of pages cached per-thread allocator. Ensures a baseline of cached pages to avoid allocation thrashing. Must be at least 1. Default is 8.

pageSize

Page size in bytes for buffer allocation. Must be a power of 2 and one of {1024, 2048, 4096, 8192, 16384}. Default is 4096 (4KB). Larger pages reduce allocation overhead but increase memory consumption for small buffers.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product