GothenburgBitFactory / taskwarrior

Taskwarrior - Command line Task Management
https://taskwarrior.org
MIT License
4.49k stars 309 forks source link

Use `Replica::pending_tasks` #3661

Closed djmitche closed 3 weeks ago

djmitche commented 4 weeks ago

This replaces a loop over all tasks with one that fetches only pending tasks, as determined by the working set.

This should be faster for task DB's with large numbers of completed tasks, although on my medium-sized installation (~5000 total tasks) the difference is negligible.

Fixes #3632.