Array Variables in Analyses and Memory

Hi everyone Smiley

I'm currently running an analysis where FilterData and MapData are used. The results of executing both functions are stored in analysis variables that are processed further in subsequent variables.

What I want to check is this: if I set up the variables of the analysis like so:

Variable   |  Expression
===========|============================
Variable1  |  MapData(...)
Variable2  |  FilterData(Variable1, ...)
Variable3  |  FilterData(Variable2, ...)

and I stop using Variable1 after doing so in Variable2's definition, will the array stored in Variable1 be deallocated after storing the FilterData result into Variable2, or will it remain allocated during the entire execution period of the analysis?

If the latter is true, and the analysis runs periodically, then is the memory allocated to all the arrays stored in Variables 1 through 3 freed between the periodic executions?

 

Thank you.

 

– Riyadh