[Rcpp-devel] rcpp overhead
Steve Lianoglou
mailinglist.honeypot at gmail.com
Sun Mar 11 00:06:51 CET 2012
Hi Kaveh,
On Sat, Mar 10, 2012 at 5:58 PM, Kaveh Vakili <kaveh.vakili at ulb.ac.be> wrote:
> Hi all,
>
> the same code when timed in cpp (i.e. without any interfacing with R)
> runs about 2 times faster than when called from R and timed from R's system.time(). In this type of overhead normal or is it a sign i'm doing something not optimally?
You'll have to provide the code you are using for test (the plain c++
as well as the R/Rcpp hybrid) if you really want smoke this out.
My guess is that you're doing something a bit wonky (and it might just
be in how you are timing it), but it's impossible to say.
-steve
--
Steve Lianoglou
Graduate Student: Computational Systems Biology
| Memorial Sloan-Kettering Cancer Center
| Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact
More information about the Rcpp-devel
mailing list