Re: [Rcpp-devel] Short blog post on loop speed in R

2011-06-23 Thread Christian Gunning
On Sun, Jun 19, 2011 at 11:20 AM, Douglas Bates wrote: > > > As for the use of Rcpp, the STL containers and algorithms can be > exploited to an even greater extent.  If you are willing to jump > through the hoops of defining a struct that inherits from > std::binary_function then you can shorten t

Re: [Rcpp-devel] Short blog post on loop speed in R

2011-06-19 Thread Dirk Eddelbuettel
On 19 June 2011 at 13:20, Douglas Bates wrote: | Interesting post, Christian. It turns out that the apply family can | get better performance than the explicit loop but, as you have seen, | no using aaply. The choices in this case are sapply or, slightly | faster, vapply from the base package.

Re: [Rcpp-devel] Short blog post on loop speed in R

2011-06-19 Thread Douglas Bates
Interesting post, Christian. It turns out that the apply family can get better performance than the explicit loop but, as you have seen, no using aaply. The choices in this case are sapply or, slightly faster, vapply from the base package. I also tried using cmpfun from the compiler package but

[Rcpp-devel] Short blog post on loop speed in R

2011-06-18 Thread Christian Gunning
Dear all, I haven't been able to keep up with the list this month (I'm looking forward to catching up on the Module developments), but I just posted this, which might be of interest to some. http://helmingstay.blogspot.com/2011/06/efficient-loops-in-r-complexity-versus.html If anyone has a few s