Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PointSlicePool ¶
type PointSlicePool struct {
// contains filtered or unexported fields
}
func New ¶
func New(defaultSize int) *PointSlicePool
func (*PointSlicePool) Get ¶
func (p *PointSlicePool) Get() []schema.Point
func (*PointSlicePool) GetMin ¶
func (p *PointSlicePool) GetMin(minCap int) []schema.Point
GetMin returns a pointslice that has at least minCap capacity
func (*PointSlicePool) Put ¶
func (p *PointSlicePool) Put(s []schema.Point)
func (*PointSlicePool) PutMaybeNil ¶
func (p *PointSlicePool) PutMaybeNil(s []schema.Point)
func (*PointSlicePool) SetDefaultSize ¶
func (p *PointSlicePool) SetDefaultSize(size int)
SetDefaultSize - Change the default size for the point slice pool. This function is not thread-safe and should only be called when pool is not being actively used.
Click to show internal directories.
Click to hide internal directories.