-->
Page 2 of 4

Re: Can I initialize SPIFFS from code ?

PostPosted: Wed Mar 02, 2016 10:15 pm
by martinayotte
That is a good question !
I don't think ever seen SPIFFS benchmarks somewhere ...
(Although didn't search for it)

EDIT : maybe it is only open() that consume lot of time, and that reading 4K instead of 160 chars won't make much difference.

Re: Can I initialize SPIFFS from code ?

PostPosted: Wed Mar 02, 2016 10:22 pm
by RogerClark
OK

I'll add some timing measurements, but at the moment I can see by my debug println's its not reading very fast at all.

Re: Can I initialize SPIFFS from code ?

PostPosted: Thu Mar 03, 2016 8:41 am
by martinayotte
Roger, are you doing your println() to serial or to wifi client ?
Because there is a latency with wifi client with multiple println(), in such case, you need to concatenate your debug within a string and send it with only one println() once in awhile.

Re: Can I initialize SPIFFS from code ?

PostPosted: Thu Mar 03, 2016 3:12 pm
by RogerClark
Hi Martin

My current problems are that reading a file from SPIFFS into memory (a String) appears to be slow.

I have lists of actions stored in files so I have to read the file, then parse it, and then do the appropriate actions. e.g. take some readings and send them to an Internet server.

I didnt have time to put in any timing stuff, as I have another intermittent crash bug at the moment, which it was more important to solve.
But its now only crashing once an hour on normal operation, which makes finding the problem difficult.
I may need to resort to setting up GDB