Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultFreeListSize = 32
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FreeList ¶
type FreeList struct {
// contains filtered or unexported fields
}
------------- FreeList ------------- FreeList 空间表,一种特定动态内存分配方案的数据结构。它通过指针把固定大小内存块组织成内存池,当需要内存分配的时候,优先从空间表中分配。 从而,避免频繁的内存分配。使用场景也很明显,就是频繁发生内存分配的场景。
func NewFreeList ¶
type ItemIterator ¶
Click to show internal directories.
Click to hide internal directories.