From 8a672e34c550cbba26bcf4c9098825b049207253 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 16 Jun 2025 14:47:05 +0200 Subject: [PATCH] ble pool --- esphome/components/esp32_ble/ble_event_pool.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() {