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 the buffer to acquire
The type of buffer to acquire (e.g., 'int32', 'number[]', 'map')
The size of the buffer to acquire
StaticacquireAcquires multiple buffers of the specified type and sizes from the pool.
The type of the buffers to acquire
The type of buffers to acquire
An array of sizes for each buffer to acquire
Private StaticallocateAllocates a new buffer of the specified type and size.
The type of buffer to allocate
The size of the buffer to allocate
StaticreleaseReleases a buffer back to the pool. If the size of the buffer is larger than the maximum item size, it will not be released.
The type of the buffer being released
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.