-
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
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
Improve iteration capability #32
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: