Message388541
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? |
|
Date |
User |
Action |
Args |
2021-03-12 17:09:18 | JunyiXie | set | recipients:
+ JunyiXie, vstinner, petr.viktorin, shihai1991 |
2021-03-12 17:09:18 | JunyiXie | set | messageid: <1615568958.2.0.827893076212.issue40601@roundup.psfhosted.org> |
2021-03-12 17:09:18 | JunyiXie | link | issue40601 messages |
2021-03-12 17:09:17 | JunyiXie | create | |
|