[Rcpp-devel] List of Lists to List of Vectors
Tim Keitt
tkeitt at utexas.edu
Wed May 6 23:22:30 CEST 2015
On Tue, May 5, 2015 at 4:36 PM, Dirk Eddelbuettel <edd at debian.org> wrote:
>
> On 5 May 2015 at 15:18, Tim Keitt wrote:
> | On Tue, May 5, 2015 at 9:11 AM, Dirk Eddelbuettel <edd at debian.org>
> wrote:
> | On 4 May 2015 at 14:42, Tim Keitt wrote:
> | | Copying is where all the costs accumulate for sure. I find it
> mostly
> | guesswork
> | | whether something copies or not with Rcpp data structures.
> |
> | By now we have said about 1e4 times that Rcpp data structures are
> ("no
> | copies") whereas other (ie Boost, STL, ...) data structures
> generally need
> | copies.
> |
> | I have no idea what that means. I just know its very easy for me to
> figure out
> | when things are copied using STL. Not so much with Rcpp.
>
> In the editing process I dropped a 'proxies' -- sorry. Let's try again:
>
> By now we have said about 1e4 times that Rcpp data structures are proxy
> objects ("no copies") whereas other (ie Boost, STL, ...) data structures
> generally need copies.
>
I understand that. Its during insertion, extraction, coercion and function
boundaries (wrap/as) where it gets a bit hard to know when you've done
shallow or deep copy.
THK
>
> Dirk
>
> --
> http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
>
--
http://www.keittlab.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20150506/25c6a032/attachment.html>
More information about the Rcpp-devel
mailing list