mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[PR #2056] [CLOSED] Use cache to improve readdir performance #2319
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#2319
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/2056
Author: @huntersman
Created: 11/15/2022
Status: ❌ Closed
Base:
master← Head:cache📝 Commits (1)
a0ecab1use cache to improve readdir performance📊 Changes
2 files changed (+122 additions, -19 deletions)
View changed files
📝
configure.ac(+1 -1)📝
src/s3fs.cpp(+121 -18)📄 Description
Relevant Issue (if applicable)
#2051
Details
When a directory has a lot of files,
s3fs_readdirwill take a lot of time because oflist_bucketandreaddir_multi_headis time-consuming. One possible solution is that we maintain a map of the path and files under that path, and files stat information should also be cached. When wereaddirfrom a certain path, we can get data from the map instead of sending request to s3.However, there are two defects. Firstly, files should only be modified via
s3fs, any modification on s3 server will not change the map. In other words, files are read only on s3. Secondly, map is not the best way because when we reboot the server, data will disappear, maybe we could use a database to store it.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
statattributes #2473