mirror of
https://github.com/esphome/esphome.git
synced 2025-11-15 14:25:45 +00:00
Reduce API proto vtable overhead by splitting decode functionality (#9541)
This commit is contained in:
@@ -8,7 +8,7 @@ namespace api {
|
||||
|
||||
static const char *const TAG = "api.proto";
|
||||
|
||||
void ProtoMessage::decode(const uint8_t *buffer, size_t length) {
|
||||
void ProtoDecodableMessage::decode(const uint8_t *buffer, size_t length) {
|
||||
uint32_t i = 0;
|
||||
bool error = false;
|
||||
while (i < length) {
|
||||
|
||||
Reference in New Issue
Block a user