You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[C++] Listing files with S3FileSystem is slow #25019
Listing files on S3 is slow due to the recursive nature of the algorithm.
The following change modifies the behavior of the S3Result to include all objects but no "grouping" (directories). This lower dramatically the number of HTTP calls.
If you issue a list request with a delimiter, you can browse your hierarchy at only one level, skipping over and summarizing the (possibly millions of) keys nested at deeper levels.
My conclusion is that the delimiter's purpose is to reduce the number of files returned when you do not need to retrieve all the files. If we are doing a recursive listing then I think it is consistent with other projects and S3's intentions that we do not specify the delimiter.
Activity
asfimport commentedon Dec 2, 2020
Antoine Pitrou / @pitrou:
Related: ARROW-10788
westonpace commentedon Mar 21, 2023
Mentioned in #34213
@pitrou
I attempted some investigation. In the AWS CLI it appears that the delimiter is only used when the listing is non-recursive.
In S3FS the delimiter is skipped when looking for a file recursively.
In the S3 docs it states:
My conclusion is that the delimiter's purpose is to reduce the number of files returned when you do not need to retrieve all the files. If we are doing a recursive listing then I think it is consistent with other projects and S3's intentions that we do not specify the delimiter.
thisisnic commentedon Jun 20, 2025
This issue hasn't had activity in a long time. If it's still being worked on, please leave a comment. Otherwise, it will be closed on 23rd June.
Labelled
Status: Stale-Warningfor tracking.