package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev

# Functions

EstimateBatchSizeBytes returns an estimated amount of bytes needed to store a batch in memory that has column types vecTypes.
GetBatchMemSize returns the total memory footprint of the batch.
GetFixedSizeTypeSize returns the size of a type that is not variable in size; e.g.
GetProportionalBatchMemSize returns the memory size of the batch that is proportional to given 'length'.
NewAllocator constructs a new Allocator instance with an unlimited memory account.
NewLimitedAllocator constructs a new Allocator instance which works with a limited memory account.
SelVectorSize returns the memory usage of the selection vector of the given capacity.

# Structs

AccountingHelper is a helper that provides a reasonable heuristic for reallocating batches with ResetMaybeReallocate() function.
Allocator is a memory management tool for vectorized components.
SetAccountingHelper is a utility struct that should be used by callers that only perform "set" operations on the coldata.Batch (i.e.