Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By RogerClark
#42363 Martin

I just put in some timing tests and its taking 1006ms to read a 161 byte file

I think this may be my crash bug, as I keep getting a WDT crash, and it seems to be happening just when its reading the file

I'll try re-coding it using a fixed length buffer, but I was hoping to avoid doing this
User avatar
By RogerClark
#42375 Can you try reading a small file

It could be the setup time

I guess I could try writing a large file and see if it makes any difference

BTW. I was using a SPIFFS based web server and it was also very slow, so I've gone back to a single, multi div, html page stored in code and its much faster

And I suspect a lot of the problems I was having with the web server were the slow access to SPIFFS

I will need to bit the bullet later and update.

What version of the repo are you using. ? (I'm using a version I cloned from the repo some time towards the end of last year i.e 1.x
User avatar
By martinayotte
#42376 I can read small file too almost instantaneously when displaying thru telnet or serial.
SPIFFS got a lot of change since 1.x.
I'm currently using the fresh 2.1.0 stable on one machine and 2.1.0-rc2 on my other machine.
I will add a quick benchmark test in my Sketch_Buffet which won't output the read characters and will provide the results.