You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Avoid using d.Get("task") for each task in appflow_flow
The original implementation called d.Get("task") for each task's source_fields attribute.
As a result, for each task, d.Get("task") is called - which turns out to be expensive.
For example for ~350 tasks, this seemed to take about 15 minutes.
Profiling for this original behavoir can be seen in the PR.
This change introduces a new single_task_flag attribute, which is computed once during the read operation and this is used to determine if a single task is present (which is what the original result of d.Get("task") was used for.
From local testing of the use-case, this completely fixes the slow-down
0 commit comments