This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Calling Scheme from C and Garbage Collection


Tel <telford@eng.uts.edu.au> writes:

> > > I don't think it's too slow if you just want to do unit testing of a number
> > >  of
> > > new functions, satisfy yourself, and then switch it off again.
> > 
> > Why don't you try it?  Add an unconditional call to gc to SCM_NEWCELL, 
> > compile, and fire it up.
> 
> How about a global flag that switches on and off the constant
> garbage collecting behaviour

I think the test for this flag in SCM_NEWCELL would degrade
performance, since consing is done so often.

/mdj