[New-bugs-announce] [issue14383] Generalize the use of _Py_IDENTIFIER in ceval.c and typeobject.c
STINNER Victor
report at bugs.python.org
Thu Mar 22 02:08:10 CET 2012
New submission from STINNER Victor <victor.stinner at gmail.com>:
Attached patch adds the followig functions:
- _PyDict_GetItemId()
- _PyDict_SetItemId()
- _PyType_LookupId() (private)
And it uses identifiers in ceval.c and typeobject.c where it is revelant.
I expect a small speedup.
The patch does also simplify the code: use the new identifier API instead of an explicit static keyword and call to PyUnicode_InternXXX.
I can split the patch into smaller parts if you prefer.
----------
components: Interpreter Core
files: identifier.patch
keywords: patch
messages: 156529
nosy: haypo, loewis, pitrou
priority: normal
severity: normal
status: open
title: Generalize the use of _Py_IDENTIFIER in ceval.c and typeobject.c
type: performance
versions: Python 3.3
Added file: http://bugs.python.org/file24987/identifier.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14383>
_______________________________________
More information about the New-bugs-announce
mailing list