khoih-prog / EthernetWebServer

This is simple yet complete WebServer library for AVR, AVR Dx, Portenta_H7, Teensy, SAM DUE, SAMD21/SAMD51, nRF52, STM32, RP2040-based, etc. boards running Ethernet shields. The functions are similar and compatible to ESP8266/ESP32 WebServer libraries to make life much easier to port sketches from ESP8266/ESP32. Coexisting now with `ESP32 WebServer` and `ESP8266 ESP8266WebServer` libraries. Ethernet_Generic library is used as default for W5x00 with custom SPI
MIT License
178 stars 49 forks source link

Upload speed it's slow #40

Closed alextroto closed 2 years ago

alextroto commented 2 years ago

Hi, I'm very happy with your library, so far; just one issue: uploadinglarge files it's very slow. For example a 170KB file it's taking around 30 seconds to upload it. I'm using ESP32 + WIZ5500 shield on a SPI bus. I've changed the HTTP_UPLOAD_BUFLEN to 4K and 16K, no visible change on upload speed. Downloading the file, it's way more faster (around 1 second). Thank you, Alex

khoih-prog commented 2 years ago

Hi,

Without the Minimal, Reproducible Example, no one can duplicate and check if you're doing everything correctly and this is the bug of this library, or something else.

Also keep in mind that this higher-level library depends on so many underlying libraries, such as Ethernet, etc., and the uploading speed also depends on your router, Internet bandwidth, etc.

It's better that you try

  1. Using ESP32 WiFi only and note / compare the uploading speed in exactly the same testing environment. Also try in the same local network
  2. Try the ESP32_FS_EthernetWebServer) as I see the uploading speed is so good when accessing within the same network.

I'm closing the issue now and won't reopen until you finish the test and prove this is the issue caused by some bugs of the library.

Good Luck,