Re: [Rd] Need for garbage collection after creating object

2008-02-05 Thread Henrik Bengtsson
On Feb 5, 2008 10:12 AM, Henrik Bengtsson <[EMAIL PROTECTED]> wrote: > On Feb 5, 2008 8:01 AM, Iago Mosqueira <[EMAIL PROTECTED]> wrote: > > Hello, > > > > After experiencing some difficulties with large arrays, I was surprised > > to see the apparent need for class to gc() after creating fairly la

Re: [Rd] Need for garbage collection after creating object

2008-02-05 Thread Henrik Bengtsson
On Feb 5, 2008 8:01 AM, Iago Mosqueira <[EMAIL PROTECTED]> wrote: > Hello, > > After experiencing some difficulties with large arrays, I was surprised > to see the apparent need for class to gc() after creating fairly large > arrays. For example, calling > > a<-array(2, dim=c(10,10,10,10,10,100)) >

[Rd] Need for garbage collection after creating object

2008-02-05 Thread Iago Mosqueira
Hello, After experiencing some difficulties with large arrays, I was surprised to see the apparent need for class to gc() after creating fairly large arrays. For example, calling a<-array(2, dim=c(10,10,10,10,10,100)) makes the memory usage of a fresh session of R jump from 13.8 Mb to 166.4 M