This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2012年03月22日 01:08 by vstinner, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| identifier.patch | vstinner, 2012年03月22日 01:11 | review | ||
| Messages (3) | |||
|---|---|---|---|
| msg156529 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2012年03月22日 01:08 | |
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. |
|||
| msg156532 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2012年03月22日 01:11 | |
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() |
|||
| msg156865 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2012年03月26日 20:15 | |
New changeset c67f3681e032 by Victor Stinner in branch 'default': Issue #14383: Add _PyDict_GetItemId() and _PyDict_SetItemId() functions http://hg.python.org/cpython/rev/c67f3681e032 |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:28 | admin | set | github: 58591 |
| 2012年03月26日 20:19:19 | vstinner | set | status: open -> closed resolution: fixed |
| 2012年03月26日 20:15:41 | python-dev | set | nosy:
+ python-dev messages: + msg156865 |
| 2012年03月22日 01:11:25 | vstinner | set | files:
+ identifier.patch messages: + msg156532 |
| 2012年03月22日 01:10:01 | vstinner | set | files: - identifier.patch |
| 2012年03月22日 01:09:15 | pitrou | set | nosy:
+ benjamin.peterson |
| 2012年03月22日 01:08:10 | vstinner | create | |