Use stack buffers and C-strings to avoid heap allocations, and modernize token handling and ownership. - Replace heap-allocated std::string temporaries in dlms_parser.cpp with stack buffers and pass const char* to callbacks/logs to reduce allocations and copying. - Change DlmsDataCallback signature to accept const char* for obis and string values; update DlmsPushComponent to match. - Switch DlmsParser ownership to std::unique_ptr in DlmsPushComponent and add <memory> include. - Replace std::list with std::vector for DSL token parsing, update iteration/insertion logic accordingly. - Remove unused <list> include and adjust related function signatures/whitespace. These changes improve performance and memory usage; note the callback/API signature change may require updating any external callers. |
||
|---|---|---|
| .. | ||
| dlms_push | ||
| xt211 | ||