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. Regards, Martin _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com