Message163043
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). |
|
Date |
User |
Action |
Args |
2012-06-17 09:21:08 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka |
2012-06-17 09:21:07 | serhiy.storchaka | set | messageid: <1339924867.59.0.117831113894.issue15092@psf.upfronthosting.co.za> |
2012-06-17 09:21:06 | serhiy.storchaka | link | issue15092 messages |
2012-06-17 09:21:06 | serhiy.storchaka | create | |
|