meshparts <alex…@meshparts.de> wrote:
> Does the second method also has advantages regarding the memory
> consuption or are the two methods identical from this point of view?
If the proc which receives the list does nothing to modify the list,
both versions are identical, as only a reference is passed.
But, if the proc changes the list, then some difference in memory usage
will occur. How much will depend upon the nature of the change made to
the list.