Files
HA-Shopping-List-Manager/custom_components/shopping_list_manager
thekiwismarthome 91cbc6018c perf: reuse cached search engine instead of rebuilding on every query
search_products() and find_product_substitutes() were ignoring the
already-built self._search_engine and creating a brand new ProductSearch
instance on every call — serialising every product to dict and
re-initialising the fuzzy engine each time.

They now use self._search_engine directly. The engine is already kept
up-to-date by add_product / update_product / delete_product, so no
correctness change is needed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-08-11 17:45:43 +12:00
..
2026-08-09 09:45:33 +12:00
2026-08-09 09:45:33 +12:00