[ Web Proxy ]
URL:
Viewing: https://arrow.apache.org/docs/python/generated/../api/../../cpp/api/../../python/api/memory.html [Back]  [Original]

Buffers and Memory — Apache Arrow v25.0.1
Back to top
Search the docs ...:

Buffers and Memory#

In-Memory Buffers#

Factory Functions#

allocate_buffer(int64_tsize,...[,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.

ResizableBuffer

A base class for buffers that can be resized.

Miscellaneous#

Codec(strcompression[,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#

MemoryPool()

Base class for memory allocation.

default_memory_pool()

Return the process-global memory pool.

jemalloc_memory_pool()

Return a memory pool based on the jemalloc heap.

mimalloc_memory_pool()

Return a memory pool based on the mimalloc heap.

system_memory_pool()

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(MemoryPoolpool)

Set the default memory pool.

log_memory_allocations([enable])

Enable or disable memory allocator logging for debugging purposes

total_allocated_bytes()

Return the currently allocated bytes from the default memory pool.


Web Proxy Viewer  |  New URL  |  Original Page