Lets take the above pseudo code for a workflow which invokes one activity taking a small input and returns a small output.
The Code above and below the activity invocation involves referencing the big List. Is it safe to assume that just because the big list is being referenced in both workflow tasks, the history size dramatically increases?
In other words, If I were to stop referencing the big list after the activity invocation, would my history size drop?
Limiting the inputs and outputs for an activity to reduce history size seems straight forward.
How exactly does a workflowTask contribute to history size?