[Rcpp-devel] rcpp overhead

Kaveh Vakili kaveh.vakili at ulb.ac.be
Sun Mar 11 01:33:04 CET 2012


>Don't take this the wrong way, but we are not here to debug or rewrite your
>code for you. 


Thanks Dirk, but i'm not asking for this either.

The code works....only it doesn't time the same. 
My question is: is it normal -- is there an 
overhead in using rcpp and how large is it, 
typically? 

I'm was not even so enclined to post my code 
--my question is more general. 

Best,


>
>On 11 March 2012 at 01:05, Kaveh Vakili wrote:
>| Hi Steve,
>| 
>| Timing:
>| 
>| i use:
>| 
>| int start_s=clock();
>| ..
>| ..
>| int stop_s=clock();
>| cout << "time: " << (stop_s-start_s)/double(CLOCKS_PER_SEC)*1000 << endl;
>
>Don't take this the wrong way, but we are not here to debug or rewrite your
>code for you. 
>
>Read the list archive. There is a well-established posting standard of using
>the CRAN packages inline (to prepare small, self-contained examples) and
>rbenchmark (for timing and comparison).
>
>You expect a free service here.  Allow us to expect you to at least conform
>to the list standards before we spend our "copious free time" on your problem.  
>
>Thanks,  Dirk
>
>
>-- 
>"Outside of a dog, a book is a man's best friend. Inside of a dog, it is too
>dark to read." -- Groucho Marx
>
>



More information about the Rcpp-devel mailing list