mirror of
https://github.com/esphome/esphome.git
synced 2026-09-13 16:18:41 +00:00
[api] Add speed_optimized to SubscribeLogsResponse
Mark SubscribeLogsResponse with (speed_optimized) = true so its encode() and calculate_size() are compiled with -O2. Log messages are among the most frequent messages sent over the API, especially during debug sessions.
This commit is contained in:
@@ -778,9 +778,10 @@ message SubscribeLogsResponse {
|
||||
option (source) = SOURCE_SERVER;
|
||||
option (log) = false;
|
||||
option (no_delay) = false;
|
||||
option (speed_optimized) = true;
|
||||
|
||||
LogLevel level = 1;
|
||||
bytes message = 3;
|
||||
LogLevel level = 1 [(force) = true];
|
||||
bytes message = 3 [(force) = true];
|
||||
}
|
||||
|
||||
// ==================== NOISE ENCRYPTION ====================
|
||||
|
||||
+481
-1027
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user