Supercharge R, with Multi-Threaded Maths
Open up R, either in your RStudio, or your standard RGui, and run the following (matrix multiplication ensues);
system.time({ x <- replicate(5e3, rnorm(5e3)); tcrossprod(x) })
On my system, using either R or RStudio (using the same base R engine), the user time was about 50 seconds. That, due to the single threaded processing nature of R.
![](http://4.bp.blogspot.com/-EZe5sM05Wfk/VqeA7-p74GI/AAAAAAAABas/AjXDw5OSna8/s1600/singleThreadedR.bmp)
Time to supercharge R maths
Microsoft has come out with a replacement default RGui, MRO (Microsoft R Open), which combined with the MKL (math kernel library), brings about multi-threaded processing.Go here and download MRO and the MKL
https://mran.revolutionanalytics.com/download/#download
Your new processing speed will look something more like this now;
![](http://2.bp.blogspot.com/-EFMmen8Eb3Y/VqeA_bTPtTI/AAAAAAAABa4/Zv8OPtREIwk/s1600/multiThreadedR.bmp)
If you're using RStudio, be sure you modify the R version in the options to point to your new-fangled R installation.
![](http://3.bp.blogspot.com/-ciCQoND417Q/VqeBGki7A7I/AAAAAAAABbE/Y42WWUGjMoo/s1600/RStudioConfig.bmp)