diff --git a/esphome/components/esp32_ble/ble_event_pool.h b/esphome/components/esp32_ble/ble_event_pool.h index f89a579efa..d3cff28110 100644 --- a/esphome/components/esp32_ble/ble_event_pool.h +++ b/esphome/components/esp32_ble/ble_event_pool.h @@ -10,8 +10,8 @@ namespace esphome { namespace esp32_ble { -// BLE Event Pool - Pre-allocated pool of BLEEvent objects to avoid heap fragmentation -// This is a lock-free pool that allows the BLE task to allocate events without malloc +// BLE Event Pool - On-demand pool of BLEEvent objects to avoid heap fragmentation +// Events are allocated on first use and reused thereafter, growing to peak usage template class BLEEventPool { public: BLEEventPool() {