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

How fast SPIFFS is (need advice) #268

Open
taraskornuta opened this issue Jul 17, 2020 · 1 comment
Open

How fast SPIFFS is (need advice) #268

taraskornuta opened this issue Jul 17, 2020 · 1 comment

Comments

@taraskornuta
Copy link

Hi.
My system configuration:
Chip: GD25Q16C
MCU: STM32L071, freq 16MHz, SPI clock 8Mhz
I consider to using SPIFFS in my project and as an alternative for LittleFS.
So currently now I'm using the LittleFS to store logs. Each log entry have always the same size (46bytes). They are all stored in one file and file uses like FIFO buffer. The size of file around 200K.
I faced with issue in LittleFS, when the file becomes bigger, then file close operation becomes slower and slower with each execution

I try to setup SPIFFS in my project, using the example from wiki. And try to write/read a "Hello world". This operation took around 3secs.
Questions is:
Is it possible to lower somehow execution of this operation, by tune the FS settings?
Is this time to make mount->open file->write data->read data ->close file->unmount will be increasing constantly with each file operation as in LittleFS?

@ikalogic
Copy link

From my exprience, the time does not increase with time.

You will get better perofrmance by having biffer logical pages and sectors, on the expense of flash memory usage.

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

2 participants