SteveLauC opened a new issue, #5269:
URL: https://github.com/apache/arrow-rs/issues/5269

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   <!--
   A clear and concise description of what the problem is. Ex. I'm always 
frustrated when [...] 
   (This section helps Arrow developers understand the context and *why* for 
this feature, in addition to  the *what*)
   -->
   
   The 
[AsyncArrowWriter](https://docs.rs/parquet/latest/parquet/arrow/async_writer/struct.AsyncArrowWriter.html#method.write)
 type can write a `RecordBatch` asynchronously by buffering the contents to 
write, which does not seem to split CPU-bound and I/O-bound tasks. Let's say 
that I have enabled the compression, which is CPU-bound, then I will write the 
compressed contents to disk, which is I/O-bound, the current API does these 2 
things together without using `spawn_blocking()` or something similar to that, 
and thus will block the underlying runtime thread while doing CPU-bound tasks.
   
   **Describe the solution you'd like**
   <!--
   A clear and concise description of what you want to happen.
   -->
   
   I would like to have an API that handles CPU-bound or I/O-bound tasks 
separately, or maybe 2 APIs?
   
   **Describe alternatives you've considered**
   <!--
   A clear and concise description of any alternative solutions or features 
you've considered.
   -->
   
   **Additional context**
   <!--
   Add any other context or screenshots about the feature request here.
   -->
   #3957 is the PR that added this `AsyncArrowWriter`, the discussion of the 
implementation proposal is in #1269.


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to