What is the cost of enabling memory profiling?


default configuration settings to disable memory profiling, shared library libR

, static-library libR.a



, valgrind

and optimize connection time.

Some of them (for example valgrind

) should only be because not everyone will use it. Others may get the answer elsewhere on SO (e.g. Is there a reason not to use link time optimization? Might answer --enable-lto[=no]


But what is the possible disadvantage or cost of including memory profiling in R



source to share

1 answer

Oops, apparently the answer can be found from https://stat.ethz.ch/R-manual/R-devel/library/utils/html/Rprofmem.html :

The memory profiler slows down R

even when not in use and is also a compile-time option.



All Articles