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 pitrou
Recipients Neil.Hodgson, ethan.furman, ezio.melotti, georg.brandl, pitrou, serhiy.storchaka, vstinner
Date 2013-04-08.12:55:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1156284897.35220081.1365425712599.JavaMail.root@zimbra10-e2.priv.proxad.net>
In-reply-to <1365416688.08.0.843890855363.issue17615@psf.upfronthosting.co.za>
Content
> You can use a single switch instead nested switches:
> 
> switch ((kind1 << 3) + kind2) {
> case (PyUnicode_1BYTE_KIND << 3) + PyUnicode_1BYTE_KIND: {
>     int cmp = memcmp(data1, data2, len);
>     ...
> }

Please let's not add this kind of optifuscation unless it has a large positive effect.
History
Date User Action Args
2013-04-08 12:55:18pitrousetrecipients: + pitrou, georg.brandl, vstinner, ezio.melotti, ethan.furman, serhiy.storchaka, Neil.Hodgson
2013-04-08 12:55:18pitroulinkissue17615 messages
2013-04-08 12:55:18pitroucreate