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

the problem of slowing down the file that is opened append #263

Open
erkanakarcay opened this issue Mar 2, 2020 · 1 comment
Open

the problem of slowing down the file that is opened append #263

erkanakarcay opened this issue Mar 2, 2020 · 1 comment

Comments

@erkanakarcay
Copy link

I have opened the file such as the below, but a short time a later process of writing occur so slowing

SPIFFS_open(&fs, "my_file", SPIFFS_APPEND | SPIFFS_RDWR, 0);
SPIFFS_write(&fs, fd, (uint8_t *) &Data, sizeof (Data);
SPIFFS_close(&fs, fd);

thanks

@erkanakarcay
Copy link
Author

I have analyzed the problem. I want to write 1KByte data but this process slows after the 12KByte data. At first 12Kbyte data, the writing process reads 3 flash areas and writes. However, after the 12Kbyte data, this process reads a lot of flash areas and writes.

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

No branches or pull requests

1 participant