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.

Author vstinner
Recipients loewis, pitrou, vstinner
Date 2012-03-22.01:08:07
SpamBayes Score 3.0219092e-09
Marked as misclassified No
Message-id <1332378490.99.0.0291853361655.issue14383@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-03-22 01:08:12vstinnersetrecipients: + vstinner, loewis, pitrou
2012-03-22 01:08:10vstinnersetmessageid: <1332378490.99.0.0291853361655.issue14383@psf.upfronthosting.co.za>
2012-03-22 01:08:10vstinnerlinkissue14383 messages
2012-03-22 01:08:10vstinnercreate