Comment on Is Python Code Sensitive to CPU Caching? (2024)Comments−davvid1yThe article didn't mention Python's atomic refcounts. They're very bad for cache usage as they're constantly invalidating cache.−quotemstr1yThe only version of Python that uses atomic reference counting is the very new free threaded version.−senderista1yNon-atomic refcounts invalidate cache as well, they're just not as expensive.
Comments
The article didn't mention Python's atomic refcounts. They're very bad for cache usage as they're constantly invalidating cache.
The only version of Python that uses atomic reference counting is the very new free threaded version.
Non-atomic refcounts invalidate cache as well, they're just not as expensive.