We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Iteration over a directory is not very efficient, as it can't be safely paused and resumed. This leads to issues. For example in trussed, as a consequence the iteration happens at a speed of $O(n^2)$ because of this: https://github.com/trussed-dev/trussed/blob/main/src/store/filestore.rs#L335
The raw c API exposes a lfs_dir_tell, which littlefs can use to "store" the current iteration position and return to using lfs_dir_seek
lfs_dir_tell
lfs_dir_seek
The text was updated successfully, but these errors were encountered:
Trying to implement it lead to discovering a bug in littelfs: littlefs-project/littlefs#785
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Iteration over a directory is not very efficient, as it can't be safely paused and resumed.$O(n^2)$ because of this: https://github.com/trussed-dev/trussed/blob/main/src/store/filestore.rs#L335
This leads to issues. For example in trussed, as a consequence the iteration happens at a speed of
The raw c API exposes a
lfs_dir_tell
, which littlefs can use to "store" the current iteration position and return to usinglfs_dir_seek
The text was updated successfully, but these errors were encountered: