Avatar for the esphome user
esphome
aioesphomeapi
BlogDocsChangelog

Avoid decoding protobuf messages when there are no subscribers

#1158Closed
Comparing
avoid_decode_protobuf_no_subscribers
(
af14f68
) with
main
(
09ea9c9
)
CodSpeed Performance Gauge
0%
Improvements
0
Regressions
0
Untouched
9
New
0
Dropped
0
Ignored
0

Benchmarks

Passed

test_sending_empty_light_command_request
tests/benchmarks/test_requests.py::test_sending_empty_light_command_request
CodSpeed Performance Gauge
+1%
42.8 µs
42.5 µs
test_multiple_ble_adv_messages_single_read
tests/benchmarks/test_bluetooth.py::test_multiple_ble_adv_messages_single_read
CodSpeed Performance Gauge
0%
28.1 µs
28 µs
test_sending_light_command_request_with_bool
tests/benchmarks/test_requests.py::test_sending_light_command_request_with_bool
CodSpeed Performance Gauge
0%
46.2 µs
46.2 µs
test_noise_messages[1024]
tests/benchmarks/test_noise.py::test_noise_messages[1024]
CodSpeed Performance Gauge
0%
3.3 ms
3.3 ms
test_noise_messages[16384]
tests/benchmarks/test_noise.py::test_noise_messages[16384]
CodSpeed Performance Gauge
0%
16.4 ms
16.4 ms
test_noise_messages[0]
tests/benchmarks/test_noise.py::test_noise_messages[0]
CodSpeed Performance Gauge
0%
2.6 ms
2.6 ms
test_raw_ble_plain_text
tests/benchmarks/test_bluetooth.py::test_raw_ble_plain_text
CodSpeed Performance Gauge
0%
22.5 µs
22.6 µs
test_raw_ble_plain_text_different_advs
tests/benchmarks/test_bluetooth.py::test_raw_ble_plain_text_different_advs
CodSpeed Performance Gauge
0%
20.3 µs
20.4 µs
test_raw_ble_plain_text_with_callback
tests/benchmarks/test_bluetooth.py::test_raw_ble_plain_text_with_callback
CodSpeed Performance Gauge
-1%
38.7 µs
39 µs

Commits

Click on a commit to change the comparison range
Base
main
09ea9c9
0%
Avoid decoding protobuf messages when there are not subscribers If we are going to throw away the message, don't bother decoding it
af2a36b
4 days ago
by bdraco
0%
Avoid decoding protobuf messages when there are no subscribers
08f22a9
4 days ago
by bdraco
0%
Avoid decoding protobuf messages when there are no subscribers
af14f68
3 days ago
by bdraco
© 2025 CodSpeed Technology
Home Terms PrivacyDocs