Skip to content
Prev 10952 / 15075 Next

Compiler options for R binary

I got a speed bump from recompiling on Mac. The Cran version is built with an llvm that doesn't support openmp.  Apart from benefits from choice of BLAS, the benefit from just recompiling is real but not huge; like on the order of 10-15%. I set tune and all of that to "auto." 

Optimization can also be pushed beyond the Cran settings without breaking make check, and the are compiler optimizations that provide a larger boost, break odd parts of make check, but I'm not sure actually break any functional part of R.

Overall, apart from the BLAS, the speed change is modest enough that I really wonder if the book is worth the candle.