Skip to content
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

Preallocation of file space to prevent write overruns #85

Open
ost-ing opened this issue Sep 18, 2023 · 0 comments
Open

Preallocation of file space to prevent write overruns #85

ost-ing opened this issue Sep 18, 2023 · 0 comments

Comments

@ost-ing
Copy link

ost-ing commented Sep 18, 2023

I've noticed that when writing to a file there is a dramatic slowdown in write speed when the data exceeds the filesize.

Having a look at Elm Chan's FatFs library The seek function beyond the filesize will preallocate space to drastically improve write speeds.

I recommend this optimization be implemented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants