Skip to content
Prev 25180 / 63424 Next

R scripts slowing down after repeated called to compiled code

On Friday 25 May 2007 7:12 pm, Michael Braun wrote:
One possibility is that you are somehow creating a lot of R objects (say by 
calling assign() or missing UNPROTECT()) and this slows garbage collector 
down. The garbage collector running time will grow with the number of objects 
you have - their total size does not have to be large.

Could you try printing numbers from gc() call and checking whether the numbers 
of allocated objects grow a lot ?

                          best

                            Vladimir Dergachev