Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyword argument to force return values to proxy #48

Open
bastibe opened this issue Aug 9, 2017 · 1 comment
Open

Keyword argument to force return values to proxy #48

bastibe opened this issue Aug 9, 2017 · 1 comment

Comments

@bastibe
Copy link
Owner

bastibe commented Aug 9, 2017

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.

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)
@bastibe bastibe mentioned this issue Aug 9, 2017
@bastibe
Copy link
Owner Author

bastibe commented Aug 9, 2017

@tsdev I currently don't have much time to work on this, but it seems a very good idea, and I'll get to it in due time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant