[ 
https://issues.apache.org/jira/browse/ARROW-14663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17441811#comment-17441811
 ] 

Neal Richardson commented on ARROW-14663:
-----------------------------------------

IMO I think it would be odd to only add this for csv read/write since we have 
lots of things that use multithreading. And I'm not sure that adding arguments 
to every function is a good idea. We already provide the global thread pool 
controls: aside from just keeping up with arguments added to readr functions, 
is there value in doing this?

> [R] Expose number of threads in read_csv_arrow() and write_csv_arrow()
> ----------------------------------------------------------------------
>
>                 Key: ARROW-14663
>                 URL: https://issues.apache.org/jira/browse/ARROW-14663
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: R
>            Reporter: Dragoș Moldovan-Grünfeld
>            Priority: Minor
>
> As of {{readr}} 2.0.0 (and the switch to {{vroom}}) both {{read_csv()}} and 
> {{write_csv()}} allow the user to pass the number of threads to be used when 
> processing (the {{num_threads}} argument). Currently this functionality is 
> not exposed in Arrow. Some functionality (not yet the CSV read or write) 
> allows the user to use the global CPU thread pool, but {{num_threads}} would 
> offer more granular control. 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to