paclema / WebConfigServer

Arduino/ESP library with a Web Server to manage device configurations under config.json file stored in the SPIFFS and plot values into real-time dashboard for ESP8266 and ESP32

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replace LinkedList with std::vector

paclema opened this issue · comments

At the moment, the WebConfigServer class stores a couple of LinkedList (before using SimpleList) to trigger the new WebConfig parse for each service and external IWebConfig classes:

LinkedList<IWebConfig*> configs = LinkedList<IWebConfig*>();
LinkedList<IWebConfig*> configsServices = LinkedList<IWebConfig*>();
// SimpleList<IWebConfig*> configs = SimpleList<IWebConfig*>();
// SimpleList<IWebConfig*> configsServices = SimpleList<IWebConfig*>();

This could be replaced to use std::vector to improve performance and to get rid of the external LinkedList library, replacing also the custom ESPAsyncWebServer and fixing the issue #2