On 13-06-02 08:09 AM, Simon Zehnder wrote:
My comments: 1) Set always '++i' not 'i++'. The second directive involves a copy, whereas the first one doesn't. This makes the first one faster.
Really? When just incrementing the for-loop index counter? Any current compiler will do the efficient thing here. Have a look at the assembly output ("-S" option for gcc) and compare the version using pre- and post-decrement of "i".
Davor _______________________________________________ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
