pitrou commented on a change in pull request #9161:
URL: https://github.com/apache/arrow/pull/9161#discussion_r555254647
##########
File path: python/pyarrow/memory.pxi
##########
@@ -127,6 +127,44 @@ def logging_memory_pool(MemoryPool parent):
return out
+def system_memory_pool():
+ """
+ Return a memory pool based on the C malloc heap.
+ """
+ cdef:
+ MemoryPool pool = MemoryPool.__new__(MemoryPool)
+ pool.init(c_system_memory_pool())
+ return pool
+
+
+def jemalloc_memory_pool():
+ """
+ Return a memory pool based on the jemalloc heap.
+
+ NotImplemented is raised if this Arrow build does not enable jemalloc.
Review comment:
Well, we'll certain forgot to update this docstring if we change the
build settings, so I'd rather not be more precise.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]