From cb4104e59a1eb5f439275cb35cac91b2a516f636 Mon Sep 17 00:00:00 2001 From: Kharec Date: Wed, 18 Feb 2026 04:28:13 +0100 Subject: [PATCH] perf(app): remove eager search cache priming during library load --- auditui/app/library.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/auditui/app/library.py b/auditui/app/library.py index bd2075b..daa3741 100644 --- a/auditui/app/library.py +++ b/auditui/app/library.py @@ -16,16 +16,15 @@ class AppLibraryMixin: return try: - all_items = self.library_client.fetch_all_items( - self._thread_status_update) + all_items = self.library_client.fetch_all_items(self._thread_status_update) self.call_from_thread(self.on_library_loaded, all_items) except (OSError, ValueError, KeyError) as exc: self.call_from_thread(self.on_library_error, str(exc)) def on_library_loaded(self, items: list[LibraryItem]) -> None: + """Store fetched items and refresh the active library view.""" self.all_items = items self._search_text_cache.clear() - self._prime_search_cache(items) self.update_status(f"Loaded {len(items)} books") if self.show_all_mode: self.show_all()