calling a chain of functions on large matrices or other objects makes transferring large amount of data multiple times between python and matlab, e.g.
A = mlab.myfun()
B = mlab.myfun2(A)
C = mlab.myfun3(B)
If A, B and C are large matrices the above command might be limited by the data transfer. It would be nice to specify per function call to keep the result in the proxy in matlab and send only a pointer to python as you are already doing it for objects. For example:
A = mlab.myfun(inproxy=True)
B = mlab.myfun2(A,inproxy=True)
C = mlab.myfun3(B,inproxy=True)
As per #46:
calling a chain of functions on large matrices or other objects makes transferring large amount of data multiple times between python and matlab, e.g.
If A, B and C are large matrices the above command might be limited by the data transfer. It would be nice to specify per function call to keep the result in the proxy in matlab and send only a pointer to python as you are already doing it for objects. For example: