What is the cost of enabling memory profiling?

R

default configuration settings to disable memory profiling, shared library libR

, static-library libR.a

, GNU

gettext

, 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

?

+3


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.

+2


source







All Articles