Documentation
¶
Overview ¶
Package pipool provides an extremely simple, non-thread-safe pool that can be used to reduce heap memory allocations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pool ¶
type Pool[T any] struct { // contains filtered or unexported fields }
Pool is a very simple, non-thread-safe object pool.
It can only be used from a single goroutine. Since Pi runs on a single goroutine, it can safely be used in pi.Update and pi.Draw.
Click to show internal directories.
Click to hide internal directories.