Message186462
I'd like to propose a code size reduction. If kind1 < kind2, swap(kind1, kind2) and swap(data1, data2). Set a variable swapped to 1 (not swapped) or -1 (swapped); then return either swapped or -swapped when a difference is found.
With that, the actual comparison could be sure that kind2 <= kind1, so if kind1 is UCS1, the inner switch can go away. If kind1 is UCS2, kind1 could only be UCS1 or UCS2. |
|
Date |
User |
Action |
Args |
2013-04-09 22:20:46 | loewis | set | recipients:
+ loewis, georg.brandl, pitrou, vstinner, ezio.melotti, ethan.furman, python-dev, serhiy.storchaka, Neil.Hodgson |
2013-04-09 22:20:46 | loewis | set | messageid: <1365546046.84.0.938959116798.issue17615@psf.upfronthosting.co.za> |
2013-04-09 22:20:46 | loewis | link | issue17615 messages |
2013-04-09 22:20:46 | loewis | create | |
|