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/05/17 11:40:59 UTC

[GitHub] [arrow] jorisvandenbossche commented on a change in pull request #10316: ARROW-12760: [C++][Python][R] Allow setting I/O thread pool size

jorisvandenbossche commented on a change in pull request #10316:
URL: https://github.com/apache/arrow/pull/10316#discussion_r633456979



##########
File path: python/pyarrow/io.pxi
##########
@@ -42,6 +42,23 @@ cdef extern from "Python.h":
         char *v, Py_ssize_t len) except NULL
 
 
+def io_thread_count():
+    """
+    Return the number of threads to use for I/O operations.
+
+    The number of threads is set to a fixed value at startup. It can
+    be modified at runtime by calling :func:`set_io_thread_count()`.
+    """
+    return GetIOThreadPoolCapacity()
+
+
+def set_io_thread_count(int count):
+    """Set the number of threads to use for I/O operations."""

Review comment:
       Maybe can add a "See also" reference to `set_cpu_count` ? 




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