Slow SPIFFS writes
Posted: Fri Oct 07, 2016 9:44 am
I format SPIFFs and upload a 900K file to it, then the ESP parses the file and creates more files from it, its like a ZIP file, and parsing is like UNZIP
Issue!
When I upload the exact same file again and re-parse and re-save the same files I go from 10 second execution to 210 seconds.... I am reading and writing 256 bytes all the time, except for the last buffer of a file write which is usually 256 or less.
I .remove() the original file before .open("filename","w");
Why slow?
RichardS
PS. I am also using me-no-dev's async tcp/ip-webserver library which does trigger itself when other things are running, so this could always be a gotcha..... but at the time of the upload and parse its the only thing happening, I can deal with contentions later...
Issue!
When I upload the exact same file again and re-parse and re-save the same files I go from 10 second execution to 210 seconds.... I am reading and writing 256 bytes all the time, except for the last buffer of a file write which is usually 256 or less.
I .remove() the original file before .open("filename","w");
Why slow?
RichardS
PS. I am also using me-no-dev's async tcp/ip-webserver library which does trigger itself when other things are running, so this could always be a gotcha..... but at the time of the upload and parse its the only thing happening, I can deal with contentions later...