ESPAsyncWebServer icon indicating copy to clipboard operation
ESPAsyncWebServer copied to clipboard

Using F macro in String processor

Open Daryavahus opened this issue 2 years ago • 1 comments

My project uses more RAM, so I decided to reduce amount of RAM using by AsyncWebserver. I changed in String void to code: (var == F("SOMECHAR")){return(...);} I can see now, that var characters use less memory than without F macro. My website uses over 200 var characters and I reduced RAM occupie from 23KB to over 30KB. It's a lot of memory. My ESP became more stable. ESP errors were eliminated.

Daryavahus avatar May 23 '23 14:05 Daryavahus

This is actually one of the great optimizations done in the mathieucarbou's fork: https://github.com/mathieucarbou/ESPAsyncWebServer/

All strings are in PROGMEM in the fork, as far as I can see.

DRSDavidSoft avatar Sep 06 '24 01:09 DRSDavidSoft