3 ms·
Okay, that's dodging the object instantiation/destruction thing but it's still doing all the reference counting on them isn't it?
by Pxtl 6y ago
Okay, that's dodging the object instantiation/destruction thing but it's still doing all the reference counting on them isn't it?
- saagarjha 6y agoWhy would reference counting be necessary an immutable, immortal global?
- Pxtl 6y agoIt isn't, but IIRC refcounting is cooked into the python interpreter in so many places that everything that can be referenced must also be refcounted. If you get a reference to something, you increment its refcount. If you lose the reference, you decrement it. No ifs, no branches.