Buffers and Memory#
In-Memory Buffers#
Factory Functions#
allocate_buffer
(int64_t size, ...[, resizable])
Allocate a mutable buffer.
py_buffer
(obj)
Construct an Arrow buffer from a Python bytes-like or buffer-like object
foreign_buffer
(address, size[, base])
Construct an Arrow buffer with the given address and size.
Classes#
Buffer
()
The base class for all Arrow buffers.
A base class for buffers that can be resized.
Miscellaneous#
Codec
(str compression[, compression_level])
Compression codec.
compress
(buf[, codec, asbytes, memory_pool])
Compress data from buffer-like object.
decompress
(buf[, decompressed_size, codec, ...])
Decompress data from buffer-like object.
Memory Pools#
Base class for memory allocation.
Return the process-global memory pool.
Return a memory pool based on the jemalloc heap.
Return a memory pool based on the mimalloc heap.
Return a memory pool based on the C malloc heap.
jemalloc_set_decay_ms
(decay_ms)
Set arenas.dirty_decay_ms and arenas.muzzy_decay_ms to indicated number of milliseconds.
set_memory_pool
(MemoryPool pool)
Set the default memory pool.
log_memory_allocations
([enable])
Enable or disable memory allocator logging for debugging purposes
Return the currently allocated bytes from the default memory pool.