You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/01/11 16:42:06 UTC

[GitHub] [arrow] kszucs commented on a change in pull request #9161: ARROW-11049: [Python] Expose alternate memory pools

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



##########
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:
       Perhaps you should add a bit more context about where we use the allocators. Like jemalloc is used and enabled in our 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:
users@infra.apache.org