pitrou opened a new pull request, #41801:
URL: https://github.com/apache/arrow/pull/41801

   ### Rationale for this change
   
   `CompressedInputStream` currently uses a fixed-size 64 kiB buffer for 
compressed input read from the underlying stream. This makes the reads issued 
to the underlying stream too small for efficient operation on filesystems such 
as S3.
   
   ### What changes are included in this PR?
   
   The changes introduced in this PR are two-fold:
   1. Introduce a `InputStream` API to query the preferred read chunk size.
   2. Use it in `CompressedInputStream` to choose an adequate size for the 
input buffer.
   
   ### Are these changes tested?
   
   Only as far as existing tests (for now?).
   
   ### Are there any user-facing changes?
   
   No.


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