Is there any difference, in terms of performance, between passing large object to remote functions directly and passing the object ref returned by ray.put.
Hi @yangw1234, passing a large object will call ray.put() under the hood. Thus if you pass the array to exactly one remote call, there shouldn’t be a performance difference.
However, if you’re aiming to pass the big array more than once, Ray will push the object to the object store multiple times, which will create unnecessary overhead, both in terms of time and memory usage.