Skip to content
This repository has been archived by the owner on Nov 2, 2024. It is now read-only.

RArray shallow copy constructor? #31

Open
randy3k opened this issue Sep 27, 2014 · 2 comments
Open

RArray shallow copy constructor? #31

randy3k opened this issue Sep 27, 2014 · 2 comments

Comments

@randy3k
Copy link
Contributor

randy3k commented Sep 27, 2014

Currently, It seems that v_r = RArray{Float64, 1}(v) deep copy the content of v to v_r.
For the sake of speed and memory storage, there should be methods to construct v_r which points to the same memory of v.

@lgautier
Copy link
Owner

It has been on my rpy2 for quite a long time but:

  • this is easier said than done
  • there is a workaround: create the array in R and then expose it to Julia does work without copy

I am not saying that it will not happen, just that I am unsure about when it will
(pull requests helping with it would be reviewed attentively though)

@randy3k
Copy link
Contributor Author

randy3k commented Sep 28, 2014

perhaps, it is limited by the memory management of R.

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

No branches or pull requests

2 participants