-
Notifications
You must be signed in to change notification settings - Fork 35
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
Remote creation of numpy arrays is slow on large lists #2
Comments
The solution is to load the list first to the remote, then create the array from the remote list, to avoid numpy reading the items of the list one by one through the connection: import scriptcontext as sc
np = sc.sticky['numpy']
r_range = rpyc.utils.classic.deliver(rpy, range(10000))
np.array(r_range) This supposes:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(From email)
The code below takes 5-10 seconds to run, which is 5-10 seconds too many:
The text was updated successfully, but these errors were encountered: