AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Python's Memory Model
Python's memory model is really interesting. When you create GC, the GC module, you can say GC get thresholds or set thresholds. And the thresholds tell you what will trigger a garbage collection - not reference counting, but a cycle detection type of thing. So if you select 10,000 rows out of a database, how many GCs are running? I mean, that's that's a lot, right? That's like 14 GCs.