Open djmitche opened 4 months ago
When renumbering tasks, we delete and re-add the entire working set:
https://github.com/GothenburgBitFactory/taskchampion/blob/e725a38c991dd32fd5f3b9b2daa4644b7dbbc9d2/taskchampion/src/taskdb/working_set.rs#L38-L42
This is pretty slow, and in most cases only a few tasks will change numbers. Optimize for that case, by only updating the items that have changed. This should allow removing the Storage::clear_working_set method as well.
Storage::clear_working_set
I would like to do it, but i don't understand the datastructures. So I need help for it.
Maybe we can come back to this after #410?
When renumbering tasks, we delete and re-add the entire working set:
https://github.com/GothenburgBitFactory/taskchampion/blob/e725a38c991dd32fd5f3b9b2daa4644b7dbbc9d2/taskchampion/src/taskdb/working_set.rs#L38-L42
This is pretty slow, and in most cases only a few tasks will change numbers. Optimize for that case, by only updating the items that have changed. This should allow removing the
Storage::clear_working_set
method as well.