Atomic Ref-Count Costs: Cache Coherence Impact

Atomic operations on reference counts, while ensuring thread safety, introduce performance overhead due to CPU cache line invalidations and memory bus contention, even in single-threaded Python, as the CPU must ensure data consistency across cores.

Sources

Open the full topic