From: Godmar Back (gback@cs.utah.edu)
Date: Tue Dec 22 1998 - 03:41:48 EST
>
> Godmar Back writes:
> > btw, one thing I just realized while looking at the output
> > of -verbosemem for a given application is that we now consume
> > a lot of memory for gcrefs, which must be allocated as well.
> >
> > I think we should seriously look at refcounting utf8consts
> > explicitly.
>
> I totally agree. And there really aren't *that* many instances
> in the source where utf8consts are created (and that we'd
> have to add ref counts for) anyway.
>
> Like I said before, this is the next step... If you'd like to go
> ahead and take a stab at it, be my guest. Otherwise I'll be looking
> at it over the next week or two.
>
No, I won't get to it.
I described my preference in an earlier mail; basically, I'd like to
see this COM-like ref counting scheme implemented. Note that the main
work here probably won't be implementing the refcounting and changing
the call sites, but adapting the class gc to ensure that everything
actually gets freed. (It should not, however, be so complicated as to
actually justify an argument in favor of keeping utf8const in the
hands of the collector.) What I'm talking about here is linking
the walkMethod and walkField methods in walkClass, implementing the
class destructor, etc. pp. Off-hand, though, I would say it should be
relatively straightforward.
- Godmar
This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:57:27 EDT