<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 5, 2015 at 4:36 PM, Dirk Eddelbuettel <span dir="ltr"><<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
On 5 May 2015 at 15:18, Tim Keitt wrote:<br>
| On Tue, May 5, 2015 at 9:11 AM, Dirk Eddelbuettel <<a href="mailto:edd@debian.org">edd@debian.org</a>> wrote:<br>
|     On 4 May 2015 at 14:42, Tim Keitt wrote:<br>
|     | Copying is where all the costs accumulate for sure. I find it mostly<br>
|     guesswork<br>
|     | whether something copies or not with Rcpp data structures.<br>
|<br>
|     By now we have said about 1e4 times that Rcpp data structures are ("no<br>
|     copies") whereas other (ie Boost, STL, ...) data structures generally need<br>
|     copies.<br>
|<br>
| I have no idea what that means. I just know its very easy for me to figure out<br>
| when things are copied using STL. Not so much with Rcpp.<br>
<br>
In the editing process I dropped a 'proxies' -- sorry. Let's try again:<br>
<br>
   By now we have said about 1e4 times that Rcpp data structures are proxy<br>
   objects ("no copies") whereas other (ie Boost, STL, ...) data structures<br>
   generally need copies.<br></blockquote><div><br></div><div>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.</div><div><br></div><div>THK</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
Dirk<br>
<br>
--<br>
<a href="http://dirk.eddelbuettel.com" target="_blank">http://dirk.eddelbuettel.com</a> | @eddelbuettel | <a href="mailto:edd@debian.org">edd@debian.org</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><a href="http://www.keittlab.org/" target="_blank">http://www.keittlab.org/</a></div></div>
</div></div>