On 20 Apr 2006 10:15:08 +0300, Erno Kuusela <[EMAIL PROTECTED]> wrote:
> The refcounting vs generational GC reasoning I've heard argues that
> refcounting is less cache-friendly: The cache line containing the
> refcount field of the pointed-to objects is dirtied (or at least
> loaded) every time something is done with the reference, even when the
> object itself is not accessed in any way. Generational GC is said to
> make the most frequent gc-related memory references somewhat
> localised.

I guess it depends on how refcounting is used. Python has many places
where references are passed without manipulating the refcount. Also,
the argument about dirtying cache lines seem to be relevant to SMP
architectures and probably doesn't apply much to Python as long as we
have the GIL (which is not going away).

--
--Guido van Rossum (home page: http://www.python.org/~guido/)
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to