How do you profile R code with Rprof, and what is byte-compilation?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks how to profile R code with Rprof and summaryRprof, and what byte-compilation does to an R function. Tests reading self and total time from a sampling profiler, the compiler package and JIT defaults, and knowing which kinds of R code gain from compilation.