Hi Kaveh,

On Sat, Mar 10, 2012 at 5:58 PM, Kaveh Vakili <[email protected]> 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
_______________________________________________
Rcpp-devel mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to