Naive Atomic Refcounting's 60% Performance Hit

Early attempts to remove Python's GIL by simply replacing `Py_INCREF` and `Py_DECREF` with atomic operations resulted in a drastic 60% average slowdown on the `pyperformance` benchmark suite, making it an unacceptable solution for single-threaded code.

Sources

Open the full topic