1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-14 06:38:17 +00:00
Unai Uribarri 8efcfd0ffd
fix[sml]: reduce update latencies in sml component
SML component is issuing constant warnings about high latencies:

```
[17:13:31][W][component:237]: Component sml took a long time for an operation (87 ms).
[17:13:31][W][component:238]: Components should block for at most 30 ms.
```

This change replaces std::vector with a new Span class inspired in C++20 std::span, removing
associated memory allocations and reducing latencies in a ESP32-S2 from 120-130ms to
50-60ms when DEBUG logs are enabled, and from 80-90ms to less than 30ms when not.

Once all frameworks use C++20, we can remove the Span class and use std::span instead.
2025-02-20 19:45:20 +01:00
2025-02-19 13:24:43 -06:00
2023-06-12 17:00:34 +12:00
2025-02-20 03:16:08 -06:00
2022-09-06 15:48:01 +12:00
2024-03-28 10:20:51 +13:00
2025-02-20 03:16:08 -06:00
2025-02-10 10:40:19 +13:00
Description
No description provided
Readme Multiple Licenses 181 MiB
Languages
C++ 70.5%
Python 29.2%
C 0.1%