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


> > 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 and a function available from scheme
to turn it on and off? That would barely slow down the startup
(which we can assume to be relatively bug free) and allow the serious
work to start when required.

	- Tel