kszucs commented on a change in pull request #9161:
URL: https://github.com/apache/arrow/pull/9161#discussion_r555245120



##########
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:
       *unix packages

##########
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:
       in our *unix packages




----------------------------------------------------------------
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]


Reply via email to