Biased Ref-Counting: Single-Thread Speed Secret

PEP 703's Biased Reference Counting (BRC) prevents significant single-thread slowdowns by using cheaper, non-atomic reference count updates for objects primarily accessed by their 'owning' thread, while reserving atomic operations for shared access.

Sources

Open the full topic