AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
The Pros and Cons of a Global Interpreter Lock for Python
Python uses reference counting for garbage collection. The problem is if you put a little lock on every single object, your performance sucks. It's been looked at over the years and people have never been able to find a way historically where we could get rid of that global interpreter lock. But it does allow scaling with threads to number of cores roughly.