On Wed, May 28, 2014 at 6:19 PM, Jameson Nash <[email protected]> wrote:
> Right, but that's where you can return a remoteref wrapper instead of the > entire array (or perhaps spawnat does this already? I don't recall exactly) I don't really think that's what is being asked for. There was no indication that this is about multiple processes, but maybe Eka can clarify. On Wed, May 28, 2014 at 4:45 PM, Eka Palamadai <[email protected]> wrote: > > How could both foo and bar use d without passing d around? > > I could pass d back and forth, but i would like to avoid the communication > overhead. > Any ideas? > Just to clarify, passing an array as an argument between functions doesn't entail any real communication – the array is allocated once and never moves, only a pointer is passed around, most likely in a CPU register. Similarly, there is no cost to returning an array that you have already allocated.
