Page 1 of 1

Slow webserver after upgrade from ESP8266 to ESP32

Posted: Wed Nov 17, 2021 4:31 pm
by marcom
Hi.
I use ESP8266 (4MB) with SPIFFS webserwer and simpleftp.
I works great.
Now, I would like to use my code with ESP32 (4MB) - because od bluetooth, IOs, etc.
I changed my code, it woks, but I am confused because of speed of it !
I have to wait 4-5 seconds for page refresh.
I am sending HTML files from SPIFFS and I don't know what is to slow - flash file system or wifi ?
I think it is a flash problem because if i have page declareg with PROGMEM - it works fast (normal).
I lost all my day for testing and I don't know what to do.
Stay with ESP8266 and cry or... or believe it is my fault, SPIFFS library problem (LittleFS doesn't work with ESP32 so I use SPIFFS) and try another solutions (declare all my html pages as PROGMEM - but it is awfull when page is big).

I believe someone had the same problem and can help.
Regards,
Mariusz

Re: Slow webserver after upgrade from ESP8266 to ESP32

Posted: Thu Nov 18, 2021 3:22 am
by ESP_Sprite
I'm no expert on this, but it'll likely help if you can post the code you're having issues with.

Re: Slow webserver after upgrade from ESP8266 to ESP32

Posted: Mon Nov 22, 2021 8:25 am
by HardyM
I'm also seeing issues with the ESP32 camera web server demo (expanded with my own application)
But even the default application has issues too I find.
I'm feeding paged read from SD Card and I've done some profiling.
The card data gets read and then passed to httpd_resp_send which can take many seconds to return the data - often timing out.
Usually a power off / on again will sort it.
I've seen lots of questions about this - is it a wifi thing ? How to get the wifi debugging info might be handy to know.
Regards
Hardy