ByteArrayPool

Re-uses large byte arrays to cut GC pressure when we generate many S3 parts. Keep at most 512 MiB of slabs in the pool.

Functions

Link copied to clipboard
fun borrow(minCapacity: Int): ByteArray
Link copied to clipboard
fun recycle(buf: ByteArray)