(This article was first published on chem-bla-ics, and kindly contributed to R-bloggers)
I just ran into this interesting post on the R-bloggers Planet. The described R functionality allows you to compile R code (to byte code) so that it will no longer be interpreted but actually run. That is a performance boost. I guess in due time we will see R use JIT technologies, so that the difference will disappear, but for now, a good thing to know about. Here are the numbers from that post:> system.time( myFunction() )
user system elapsed
10.002 0.014 10.021
> system.time( myCompiledFunction() )
user system elapsed
0.692 0.008 0.700
Compiling a function seems pretty easy, and I will give that a try soon, but not today:
> library(compiler)
> myCompiledFunction <- cmpfun(myFunction)
> myCompiledFunction <- cmpfun(myFunction)
To leave a comment for the author, please follow the link and comment on his blog: chem-bla-ics.
R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series,ecdf, trading) and more...

Zero Inflated Models and Generalized Linear Mixed Models with R.
Zuur, Saveliev, Ieno (2012).