New submission from STINNER Victor <victor.stin...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue14383>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to