Jump to ratings and reviews
Rate this book

R High Performance Programming

Rate this book
Overcome performance difficulties in R with a range of exciting techniques and solutionsAbout This BookBenchmark and profile R programs to solve performance bottlenecksCombine the ease of use and flexibility of R with the power of big data toolsFilled with practical techniques and useful code examples to process large data sets more efficientlyWho This Book Is ForThis book is for programmers and developers who want to improve the performance of their R programs by making them run faster with large data sets or who are trying to solve a pesky performance problem.

What You Will LearnBenchmark and profile R programs to solve performance bottlenecksUnderstand how CPU, memory, and disk input/output constraints can limit the performance of R programsOptimize R code to run faster and use less memoryUse compiled code in R and other languages such as C to speed up computationsHarness the power of GPUs for computational speedProcess data sets that are larger than memory using disk-based memory and chunkingTap into the capacity of multiple CPUs using parallel computingLeverage the power of advanced database systems and Big Data tools from within RIn DetailWith the increasing use of information in all areas of business and science, R provides an easy and powerful way to analyze and process the vast amounts of data involved. It is one of the most popular tools today for faster data exploration, statistical analysis, and statistical modeling and can generate useful insights and discoveries from large amounts of data.

Through this practical and varied guide, you will become equipped to solve a range of performance problems in R programming. You will learn how to profile and benchmark R programs, identify bottlenecks, assess and identify performance limitations from the CPU, identify memory or disk input/output constraints, and optimize the computational speed of your R programs using great tricks, such as vectorizing computations. You will then move on to more advanced techniques, such as compiling code and tapping into the computing power of GPUs, optimizing memory consumption, and handling larger-than-memory data sets using disk-based memory and chunking.

293 pages, Kindle Edition

First published January 29, 2015

2 people are currently reading
7 people want to read

About the author

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
4 (50%)
4 stars
3 (37%)
3 stars
1 (12%)
2 stars
0 (0%)
1 star
0 (0%)
Displaying 1 - 3 of 3 reviews
13 reviews
March 4, 2015
A great book to learn how to make R perform well

R High Performance Programming is an excellent book to help R programmers to take advantage of all the features of the language and solve practical performance problems or bottlenecks that they might encounter processing large amounts of data.

Every chapter explains a topic with simple but meaningful examples,
showing which tools to use and how to pick the right packages from CRAN.
The reader is also given the choice to only read certain chapters if he does not want to delve into the more advanced topics.

The book starts by introducing the reader to R features, the language internals and its memory model.
The authors then explain how to correctly measure code performance and the basic tricks that can be adopted when coding an R program to ensure code runs fast and does not waste computing resources.

After this introductory part, the book deals with a set of advanced techniques to get your programs running even faster, like developing code compiled for R, accelerating the computation by taking advantage of the GPU, optimizing the memory footprint and processing large datasets with limited resources.

For scenarios where the previous techniques are not sufficient, the last chapters deal with parallelization or R programs, offloading the processing to a database and dealing with Big Data with an example running on AWS.

In conclusion, I really enjoyed reading this book because it is written in a very simple and understandable manner also for less experienced programmers and even complex subjects are explained in a simple way.
Profile Image for Sumit.
65 reviews8 followers
July 28, 2016
Though R is has become extremely popular with data analysts, performance remains a key challenge for R users. This book addresses a a wide range of techniques to overcome this challenge, including parallelism, memory management and running processes on the GPU. A very useful book for practitioners.
Displaying 1 - 3 of 3 reviews

Can't find what you're looking for?

Get help and learn more about the design.