With byte compiler, R 2.14 will be even faster

August 2, 2011

(This article was first published on Revolutions, and kindly contributed to R-bloggers)

In a presentation at the JSM 2011 conference in Miami yesterday, R core member Luke Tierney revealed that the next major update to R, R 2.14, will feature improved speed when processing interpreted R code, thanks to standard use of the new byte compiler feature. 

The byte compiler was introduced with R 2.13, but while R developers could use it for their own functions, the standard base and recommended packages were unaffected by the byte compiler. Starting with R 2.14, all of the standard functions and packages in R will be pre-compiled into byte-code, which in some cases can speed up performance by a factor of 5x or more. (In an experimental version of the compiler, which may make it into 2.14, even greater speedups are possible.) The benefits accrue mainly to pure R functions which deal with scalars and very short vectors — R functions which call out to C code and operations on large vectors won't be affected much. With the new compiler, Tierney says there should be fewer occasions where R programmers need to turn to C or other external languages to speed up R code.

In other news for R 2.14, Tierney says that the new version may also make transparent use of parallel processing for some operations on multi-core machines. The colSums and dist functions already include hidden features for parallel processing, and if tests go well features like this may become the default in future versions of R. Features from Tierney's experimental pnmath package, which parallelizes some basic math routines in R, may also make it into the next release.

R 2.14 is expected to be released later this year.

To leave a comment for the author, please follow the link and comment on their blog: Revolutions.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Tags: ,

Comments are closed.

Search R-bloggers


Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)