gh-84436: Implement Immortal Objects (gh-19474)
This is the implementation of PEP683 Motivation: The PR introduces the ability to immortalize instances in CPython which bypasses reference counting. Tagging objects as immortal allows up to skip certain operations when we know that the object will be around for the entire execution of the runtime. Note that this by itself will bring a performance regression to the runtime due to the extra reference count checks. However, this brings the ability of having truly immutable objects that are useful in other contexts such as immutable data sharing between sub-interpreters.
E
Eddie Elizondo committed
ea2c0016502472aa8baa3149050ada776d17a009
Parent: 916de04
Committed by GitHub <noreply@github.com>
on 4/22/2023, 7:39:37 PM