[issue40601] [C API] Hide static types from the limited C API
junyixie
report at bugs.python.org
Fri Mar 12 12:09:18 EST 2021
junyixie <xie.junyi at outlook.com> added the comment:
It seems that there is no continued progress for move static type in heap.This will make it impossible to continue to achieve sub interpreters parallel. Are there any plans to try other solutions to the problem?
In my project, i try to slove this problem, It can work, we verify on millions of devices.
1. In typeobject.c add lock to ensure that some functions that modification type are thread-safe
2. and make the PyCFunction and descri object of the Type will never be released. (Frequently used when load method/attributed, locking affects performance)
Can this change be submitted to cpython?
----------
nosy: +JunyiXie
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40601>
_______________________________________
More information about the Python-bugs-list
mailing list