Avatar for the Bluetooth-Devices user
Bluetooth-Devices
bleak-esphome
BlogDocsChangelog

perf: cache address_type details dicts to avoid per-advertisement allocation

#280Closed
Comparing
cache-address-type-details
(
0ea9107
) with
main
(
4d10fca
)
CodSpeed Performance Gauge
+2%
Untouched
5

Benchmarks

5 total
test_scanner_real_adv_data[adv1]
tests/backend/test_scanner_benchmarks.py
CodSpeed Performance Gauge
+2%
27.4 ms26.8 ms
test_scanner_async_on_advertisement
tests/backend/test_scanner_benchmarks.py
CodSpeed Performance Gauge
+2%
10.2 ms10.1 ms
test_scanner_real_adv_data[adv3]
tests/backend/test_scanner_benchmarks.py
CodSpeed Performance Gauge
+1%
14 ms13.8 ms
test_scanner_async_on_advertisement_six
tests/backend/test_scanner_benchmarks.py
CodSpeed Performance Gauge
+1%
27.4 ms27 ms
test_scanner_real_adv_data[adv2]
tests/backend/test_scanner_benchmarks.py
CodSpeed Performance Gauge
+1%
9.8 ms9.7 ms

Commits

Click on a commit to change the comparison range
Base
main
4d10fca
+1.6%
perf: cache address_type details dicts to avoid per-advertisement allocation
0ea9107
19 days ago
by bdraco
© 2026 CodSpeed Technology
Home Terms Privacy Docs