[issue19515] Share duplicated _Py_IDENTIFIER identifiers in C code

STINNER Victor report at bugs.python.org
Thu Nov 7 21:54:41 CET 2013


STINNER Victor added the comment:

Antoine, Martin: So, what do you think? Is it worth to move most common identifiers to a single place to not duplicate them?

If identifiers are already cleared at exit, the advantage would be to initialize duplicated identifiers more quickly, and don't initialize duplicated identifiers multiple times (once per copy).

If we choose to not share common identifiers, _PyId_xxx identifiers from pythonrun.c must be removed. There are also some identifiers duplicated in the same file which can be moved at the top to remove at least duplicates in a single file, as it was done for other identifiers in issue #19514.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19515>
_______________________________________


More information about the Python-bugs-list mailing list