Documentation ¶
Overview ¶
Package pool provides pool structures to help reduce garbage collector pressure.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bytes ¶
type Bytes struct {
// contains filtered or unexported fields
}
Bytes is a pool of byte slices that can be re-used. Slices in this pool will not be garbage collected when not in use.
type Generic ¶
type Generic struct {
// contains filtered or unexported fields
}
Generic is a pool of types that can be re-used. Items in this pool will not be garbage collected when not in use.
func NewGeneric ¶
NewGeneric returns a Generic pool with capacity for max items to be pool.
Click to show internal directories.
Click to hide internal directories.