In p_update_ed_process, we currently update everything we track per-task. We can (and probably should) instead update only those fields that could have legitimately changed in the specific context a given call to p_update_ed_process is made from. We could split this function in several, or we could introduce a parameter that would tell it what to update.
We could also check that the fields we skipped updating are in fact unchanged - maybe simply call p_cmp_tasks at the end of any incomplete p_update_ed_process.
In
p_update_ed_process
, we currently update everything we track per-task. We can (and probably should) instead update only those fields that could have legitimately changed in the specific context a given call top_update_ed_process
is made from. We could split this function in several, or we could introduce a parameter that would tell it what to update.We could also check that the fields we skipped updating are in fact unchanged - maybe simply call
p_cmp_tasks
at the end of any incompletep_update_ed_process
.