Re: [Rd] Moderating consequences of garbage collection when in C

2011-11-14 Thread dhinds
Martin Morgan wrote: > > Do you know if this is all happening inside a C function that could > > handle disabling and enabling GC? Or would it require doing this at > > the R level? For testing, I am turning GC on and off at the R level > Generally complicated operations across multiple functi

Re: [Rd] Moderating consequences of garbage collection when in C

2011-11-14 Thread Martin Morgan
On 11/14/2011 01:12 PM, dhi...@sonic.net wrote: Martin Morgan wrote: > On 11/14/2011 11:47 AM,dhi...@sonic.net wrote: > > dhi...@sonic.net wrote: > >> Martin Morgan wrote: > > > > I had done some google searches on this issue, since it seemed like it > > should not be too uncom

Re: [Rd] Moderating consequences of garbage collection when in C

2011-11-14 Thread dhinds
Martin Morgan wrote: > On 11/14/2011 11:47 AM, dhi...@sonic.net wrote: > > dhi...@sonic.net wrote: > >> Martin Morgan wrote: > > > > I had done some google searches on this issue, since it seemed like it > > should not be too uncommon, but the only other hit I could come up > > with was a thread

Re: [Rd] Moderating consequences of garbage collection when in C

2011-11-14 Thread Martin Morgan
On 11/14/2011 11:47 AM, dhi...@sonic.net wrote: dhi...@sonic.net wrote: Martin Morgan wrote: Allocating many small objects triggers numerous garbage collections as R grows its memory, seriously degrading performance. The specific use case is in creating a STRSXP of several 1,000,000's of eleme

Re: [Rd] Moderating consequences of garbage collection when in C

2011-11-14 Thread Thomas Lumley
On Tue, Nov 15, 2011 at 8:47 AM, wrote: > dhi...@sonic.net wrote: >> Martin Morgan wrote: >> > Allocating many small objects triggers numerous garbage collections as R >> > grows its memory, seriously degrading performance. The specific use case >> > is in creating a STRSXP of several 1,000,000'

Re: [Rd] Moderating consequences of garbage collection when in C

2011-11-14 Thread dhinds
dhi...@sonic.net wrote: > Martin Morgan wrote: > > Allocating many small objects triggers numerous garbage collections as R > > grows its memory, seriously degrading performance. The specific use case > > is in creating a STRSXP of several 1,000,000's of elements of 60-100 > > characters each;

Re: [Rd] Moderating consequences of garbage collection when in C

2011-11-09 Thread dhinds
Martin Morgan wrote: > Allocating many small objects triggers numerous garbage collections as R > grows its memory, seriously degrading performance. The specific use case > is in creating a STRSXP of several 1,000,000's of elements of 60-100 > characters each; a simplified illustration understa