Look up parent todo items more efficiently
todo_by_dep_id was quite inefficient due to the linear search, calling Todo.tag_value() many times to fetch the dependency ID. Instead, maintain a dictionary that maps a parent ID to a todo item so it can be looked up more easily.
Showing
Please register or sign in to comment