Skip to content

Conversation

terraputix
Copy link
Contributor

We cache the size attribute of the file in the metadata to be able to pass it to the open call in the CachingFileSystem. This avoids retrieving the size on each file access, which is costly for files read over a network, e.g. S3.

Closes #1832.

We cache the size attribute of the file in the metadata to be able to
pass it to the open call in the CachingFileSystem. This avoids retrieving
the size on each file access, which is costly for files read over
a network, e.g. S3.
@terraputix terraputix force-pushed the improve-CachingFileSystem-performance branch from bbed46f to cfa2588 Compare April 30, 2025 07:00
@martindurant martindurant merged commit cec29ba into fsspec:master May 6, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CachingFileSystem combined with S3FileSystem redundantly fetches file size from S3

2 participants