[Rcpp-devel] Question on performance

Dirk Eddelbuettel edd at debian.org
Sun Sep 23 14:39:00 CEST 2018


On 23 September 2018 at 13:01, Iñaki Ucar wrote:
| Also you can try adding
| 
| // [[Rcpp::plugins(unwindProtect)]]
| 
| to InsideLoop.cpp. That should boost the performance too with the
| latest version of Rcpp.

Maybe, maybe not.  Are there lots of calls happening here?  Should be easy
enough to add and then (micro)benchmark() from R.

Another endeavour may be to take the rewritten C++ version by MattDB in
https://github.com/jesusfv/Comparison-Programming-Languages-Economics/blob/master/RBC_CPP_2.cpp
and wrap that.

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org


More information about the Rcpp-devel mailing list