mathieucarbou / ESPAsyncWebServer

Asynchronous HTTP and WebSocket Server Library for ESP32, ESP8266 and RP2040
https://mathieu.carbou.me/ESPAsyncWebServer/
GNU Lesser General Public License v3.0
87 stars 17 forks source link

(perf) Remove "interesting headers" to fasten request processing (replaced with `removeHeadersExcept`) #101

Closed mathieucarbou closed 2 months ago

mathieucarbou commented 2 months ago

All headers are already parsed: interesting headers allowed to cleanup parsed headers to only keep interesting ones during request processing.

Headers are anyway all cleaned after request processing.

This removal helps reduce flash size and heap usage (on vector less).

mathieucarbou commented 2 months ago

I will merge this one today: this one is not as important as the middleware one and is quite simple.

mathieucarbou commented 2 months ago

And in case you see something, we'll PR a fix.