You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Generalize the use of _Py_IDENTIFIER in ceval.c and typeobject.c #58591
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2012-03-26.20:19:19.085>created_at=<Date2012-03-22.01:08:10.367>labels= ['interpreter-core', 'performance']
title='Generalize the use of _Py_IDENTIFIER in ceval.c and typeobject.c'updated_at=<Date2012-03-26.20:19:19.084>user='https://github.com/vstinner'
Activity
vstinner commentedon Mar 22, 2012
Attached patch adds the followig functions:
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.
vstinner commentedon Mar 22, 2012
Oops, my patch contained an unrelated change. I attach a new patch. I commited the change:
changeset: 75866:
tag: tip
user: Victor Stinner <victor.stinner@gmail.com>
date: Thu Mar 22 02:09:08 2012 +0100
files: Objects/object.c
description:
Micro-optimize PyObject_GetAttrString()
python-dev commentedon Mar 26, 2012
New changeset c67f3681e032 by Victor Stinner in branch 'default':
Issue bpo-14383: Add _PyDict_GetItemId() and _PyDict_SetItemId() functions
http://hg.python.org/cpython/rev/c67f3681e032