replace unordered_map with map, less heap

This commit is contained in:
proddy
2026-01-22 16:40:05 +01:00
parent 038f06e59f
commit e0a26a38fa
7 changed files with 14 additions and 14 deletions

View File

@@ -19,7 +19,7 @@
#ifndef EMSESP_COMMAND_H_
#define EMSESP_COMMAND_H_
#include <unordered_map>
#include <map>
#include "console.h"
#include <esp32-psram.h>
@@ -153,8 +153,8 @@ class Command {
class SUrlParser {
private:
std::unordered_map<std::string, std::string> m_keysvalues;
std::vector<std::string> m_folders;
std::map<std::string, std::string> m_keysvalues;
std::vector<std::string> m_folders;
public:
SUrlParser() = default;
@@ -166,7 +166,7 @@ class SUrlParser {
return m_folders;
};
std::unordered_map<std::string, std::string> & params() {
std::map<std::string, std::string> & params() {
return m_keysvalues;
};