Message361533
> The GIL avoids any risk of race condition, no?
Looks like the GIL would affect performance more or less?
>_Py_IDENTIFIER() would only be a "key" and _PyUnicode_FromId() would >store the value somewhere in a hash table stored in PyInterpreterState.
+1.
IMHO, for those two cases, the simplest idea is move IDENTIFIER to moduleState which would increase more memory usage than InterpreterState. |
|
Date |
User |
Action |
Args |
2020-02-07 02:59:23 | shihai1991 | set | recipients:
+ shihai1991, ncoghlan, vstinner, petr.viktorin, eric.snow |
2020-02-07 02:59:23 | shihai1991 | set | messageid: <1581044363.25.0.714382126411.issue39465@roundup.psfhosted.org> |
2020-02-07 02:59:23 | shihai1991 | link | issue39465 messages |
2020-02-07 02:59:23 | shihai1991 | create | |
|