Camm Maguire <[EMAIL PROTECTED]> writes: > Greetings! > > Shouldn't this function be total-bytes-used on second thought?
Yes, absolutely. Unfortunately the intended result and the effective result do not match, but I belive this is a usefull function to have in many situations. I am looking into the possibility of getting a proper implementation of a get-bytes-consed varient, using a new slot tm_totalloc in the typemanager to carry a bignum (and thus not relying on tm_nused for this purpose). Unfortunately this would mean an mp addition in the middle of make_cons. Furthermore there does not seem to be a general interface to direct, destructive mp arithmetic exported via the generic mp.h. Is pari still supported? Thanks, Steve > > Stephen Wilson <[EMAIL PROTECTED]> writes: > > > Hello Camm, > > > > Thank you for including this change! > > > > [...] > > > 2) The algorithm needs correcting when sgc is on -- is one interested > > > in the active read-write set, of the static read-only set here? > > > > My understanding of stratified gc is that the read-only set is what > > counts here, but I would need to delve into the details of GCL's > > implementation before I could make a conclusive statement in this > > regard. > > > > Actually a hybrid: > > current algorithm counts > all used cells > all allocated contiguous pages > read-write only used relocatable blocks. > > Take care, > > > > > > > To save you some typing, attached is a very terse patch against > > si-defs.texi. Not to sure what else one needs to say about this > > function. > > > > > > Thanks again, > > Steve > > > > > > --- si-defs.texi 2007-07-11 17:06:05.000000000 -0400 > > +++ si-defs.texi.smw 2007-07-11 17:05:16.000000000 -0400 > > @@ -375,7 +375,14 @@ > > > > > > @end deffn > > [EMAIL PROTECTED] TOTAL-BYTES-ALLOCATED () > > +Package:SI > > + > > +GCL specific: Returns the total number of bytes allocated by GCL since > > +the image was started. > > > > + > > [EMAIL PROTECTED] defun > > @defun *MAKE-SPECIAL (symbol) > > Package:SI > > > > _______________________________________________ > > Axiom-developer mailing list > > [EMAIL PROTECTED] > > http://lists.nongnu.org/mailman/listinfo/axiom-developer > > -- > Camm Maguire [EMAIL PROTECTED] > ========================================================================== > "The earth is but one country, and mankind its citizens." -- Baha'u'llah _______________________________________________ Gcl-devel mailing list Gcl-devel@gnu.org http://lists.gnu.org/mailman/listinfo/gcl-devel