eeroel commented on PR #37868:
URL: https://github.com/apache/arrow/pull/37868#issuecomment-1734827448

   > Thats a good idea, but I guess when we create InputStream in Object Store, 
the internal of stream will also issuing an HEAD request ( 
https://github.com/apache/arrow/blob/main/cpp/src/arrow/filesystem/s3fs.cc#L1232
 ), I wonder if these are all duplicates...
   
   When the source has file size it will be passed here: 
`https://github.com/apache/arrow/blob/ebc23687cb0376e24a0f002fe710db5ad891c674/cpp/src/arrow/filesystem/s3fs.cc#L2546`,
 so the function will early exit 
(https://github.com/apache/arrow/blob/ebc23687cb0376e24a0f002fe710db5ad891c674/cpp/src/arrow/filesystem/s3fs.cc#L1224)
   
   But that request you linked is also problematic with regards to threading. I 
wonder if it would be difficult to refactor it to use `SubmitIO` ?


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