0
0
mirror of https://github.com/python/cpython.git synced 2024-11-30 18:51:15 +01:00
cpython/Programs
Eddie Elizondo ea2c001650
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.
2023-04-22 13:39:37 -06:00
..
_bootstrap_python.c gh-99582: freeze zipimport into _bootstrap_python (#99583) 2022-12-10 15:05:56 +05:30
_freeze_module.c gh-103326: Remove Python/importlib.h (GH-103331) 2023-04-12 11:27:14 -07:00
_freeze_module.py
_testembed.c gh-84436: Implement Immortal Objects (gh-19474) 2023-04-22 13:39:37 -06:00
freeze_test_frozenmain.py
python.c
README
test_frozenmain.h gh-102856: Initial implementation of PEP 701 (#102855) 2023-04-19 11:18:16 -05:00
test_frozenmain.py

Source files for binary executables (as opposed to shared modules)