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 serhiy.storchaka
Recipients serhiy.storchaka
Date 2012-06-17.09:20:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1339924867.59.0.117831113894.issue15092@psf.upfronthosting.co.za>
In-reply-to
Content
Now a string kind declared in different places of code as `enum PyUnicode_Kind`, `int` or `unsigned int`. Working on the codecs optimization, I noticed that sometimes the use of `enum PyUnicode_Kind` gives a little advantage over the use of int's. Probably this hint allows compiler to better utilize the optimizer. The proposed patch replaces all string kind's declarations of local variables and private functions to `enum PyUnicode_Kind`. If this will not impact significantly on the performance, then at least the unification will enhance the readability and will allow to avoid some of the errors (missing switch cases).
History
Date User Action Args
2012-06-17 09:21:08serhiy.storchakasetrecipients: + serhiy.storchaka
2012-06-17 09:21:07serhiy.storchakasetmessageid: <1339924867.59.0.117831113894.issue15092@psf.upfronthosting.co.za>
2012-06-17 09:21:06serhiy.storchakalinkissue15092 messages
2012-06-17 09:21:06serhiy.storchakacreate