Here's another idea to reduce memory use.
We could mix refcount and gc for the GcResources
so that in absence of circular refs we'll release
them sooner.

The additional overhead would be:
        - refcount management  (per reference)
        - GC list  management (per object)

Implementation:
        - manage GcResources with intrusive_ptr<>
          like others.
        - Tweak add/drop refs for GcResource in libbase/smart_ptr.h
        - Tweak GcResource to add refcount and signal GC
          about being removed.

--strk;

 Free GIS & Flash consultant/developer      ()  ASCII Ribbon Campaign
 http://foo.keybit.net/~strk/services.html  /\  Keep it simple! 


_______________________________________________
Gnash-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-dev

Reply via email to