optimization

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package optimization provides simplified optimization stubs for compilation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OptimizationConfig

type OptimizationConfig struct {
	EnableMemoryPools bool
	RecordPoolSize    int
	BufferPoolSize    int
	EnableBufferReuse bool
	MinBufferSize     int
}

OptimizationConfig contains optimization configuration

type OptimizationLayer

type OptimizationLayer struct {
	// contains filtered or unexported fields
}

OptimizationLayer is a stub for the optimization layer

func NewOptimizationLayer

func NewOptimizationLayer(config *OptimizationConfig, logger *zap.Logger) *OptimizationLayer

NewOptimizationLayer creates a new optimization layer (stub)

func (*OptimizationLayer) Close

func (ol *OptimizationLayer) Close()

Close closes the optimization layer

func (*OptimizationLayer) GetBuffer

func (ol *OptimizationLayer) GetBuffer() []byte

GetBuffer returns a buffer from the pool (stub)

func (*OptimizationLayer) GetRecord

func (ol *OptimizationLayer) GetRecord(source ...string) interface{}

GetRecord returns a record from the pool (stub)

func (*OptimizationLayer) ReleaseBuffer

func (ol *OptimizationLayer) ReleaseBuffer(buffer []byte)

ReleaseBuffer releases a buffer back to the pool (stub)

func (*OptimizationLayer) ReleaseRecord

func (ol *OptimizationLayer) ReleaseRecord(record interface{})

ReleaseRecord releases a record back to the pool (stub)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL