Skip to content

Comment on Is Python Code Sensitive to CPU Caching? (2024)

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.