mirror of
https://github.com/esphome/esphome.git
synced 2026-02-08 16:51:52 +00:00
2e506514003e46a59778e3a107cab5d4e4c75463
Replace std::vector<uint8_t> in recv_command_() with a member std::array<uint8_t, 36> buffer to eliminate heap allocation on every polling cycle. Also use pointer+length instead of vector references in handle_note_/handle_reply_, and use TextSensor's publish_state(const char*, size_t) overload to avoid temporary std::string construction for version and face name publishing.
Description
Languages
C++
64.3%
Python
35.4%
C
0.2%
