Displaying 1 result from an estimated 1 matches for "a5d6b202".
2008 Nov 13
2
growing a list sequentially -- memory management
hello,
i have something like:
out<-list()
for(i in 1:n){
data<-gen(...) #fixed size data
out[[i]]<- fun(data)
}
> object.size(out[[1]])
6824
In principle 1 GB should allow
n = 1024^3/6824 = 157347?
i have about 2GB are not taken by other processes. however, I can see the
memory shrinking quite rapidly on my system monitor and have to stop the
simulation after only n=300. why