onyx-tasks/apps
Claude 069afe8d5e
perf(tauri): build child index once for cascade delete
`delete_task`'s descendant walk re-scanned the full task list on every
frontier pop, so the cost was O(n * depth) where n is the list size.
For a list of a few hundred tasks with even moderate nesting that's
already noticeable.

Index `parent_id -> [child_id]` once up-front; the BFS then visits each
descendant in O(1) amortised, dropping the total to O(n).
2026-04-25 07:26:56 +00:00
..
tauri perf(tauri): build child index once for cascade delete 2026-04-25 07:26:56 +00:00