Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Allocator ¶
type Allocator struct {
// contains filtered or unexported fields
}
Allocator is simply a container with a big byte-slice inside. It is responsible for keeping header values together instead of having a lot of smaller slices. This decreases a GC pressure (having less pointers), and potentially makes code easier & doing less memory allocations
func NewAllocator ¶
Click to show internal directories.
Click to hide internal directories.