Private Static ReadonlyCONFIGPool Types
Private Static ReadonlyPOOLSPool Rings for each type
StaticacquireAcquires a buffer of the specified type and size from the pool. If no suitable buffer is available, it allocates a new one.
The type of buffer to acquire (e.g., 'int32', 'number[]', 'map')
The size of the buffer to acquire
StaticacquirePrivate StaticallocateAllocates a new buffer of the specified type and size.
The type of buffer to allocate
The size of the buffer to allocate
Staticrelease
The Pool class provides a buffer pool for dynamic programming algorithms.
It allows for efficient reuse of buffers (Int32Array, number[], Set, Map) to reduce memory allocations and garbage collection overhead.