Documentation
¶
Overview ¶
Package compression provides a buffer pool for resource decompression. It also initializes the default buffer pool and zstd encoder/decoder with a dictionary for the specs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildConfig ¶
func BuildConfig(enabled, useDict, usePool bool) (specs.CompressionConfig, error)
BuildConfig creates a new CompressionConfig with the given options.
func InitConfig ¶
InitConfig initializes the compression configuration for the resource specs.
Types ¶
type TieredBufferPool ¶
type TieredBufferPool struct {
// contains filtered or unexported fields
}
TieredBufferPool is a buffer pool that uses multiple sized buffer pools.
func NewTieredBufferPool ¶
func NewTieredBufferPool(minSize int, poolSizes []int) *TieredBufferPool
NewTieredBufferPool creates a new TieredBufferPool with the given minimum size and pool sizes.
Click to show internal directories.
Click to hide internal directories.