[Python-3000] Delayed reference counting idea
"Martin v. Löwis"
martin at v.loewis.de
Mon Sep 18 23:11:03 CEST 2006
Antoine Pitrou schrieb:
> Has it been measured what cache effects reference counting entails ?
I don't think so.
> With reference counting, each object is mutable from the point of view
> of the CPU cache (refcnt is always incremented and later decremented).
> This means almost every cache line containing Python objects - including
> functions, modules... - has to be written back when it is evicted, even
> if those objects are "constant".
Yes, though this is likely negligible wrt. to the overhead that locking
operations on refcount changes would have.
More information about the Python-3000