Use a closure to insert the values of local variables into the expressions to be evaluated:
Use
With to insert the values of local variables:
Side effects are local to each evaluation:
Use a shared variable to support global side effects:
There is a considerable overhead for scheduling trivial calculations:
The overhead is smaller for generating fewer, but larger, evaluation units:
A sequential evaluation avoids all communication overhead: