[Rcpp-devel] optimizing rcpp iterating code

Steve Bellan steve.bellan at gmail.com
Wed Jul 16 19:15:10 CEST 2014


also, note I just got a slight bump in speed by only doing 

NumericMatrix serosO=clone(seros);

once, outside of the loop and by just doing

serosO=seros;

inside the loop so that there was no re-initialization of serosO each time. Now I'm 3.5X instead of 2.5X R-speed for 10^4 numcouples, but I keep seeing people talk about 30X increases and I'm hoping to approach that.



More information about the Rcpp-devel mailing list