Message156407
> With my patch (attached) codecs.utf_16_be_decode runs 5% faster (on 32-bit Linux, I was not tested 64-bit). And of cause no pointers -- no aliasing warnings.
Your patch is wrong: you need to use & 0xffff to get lower 16 bits
when reading a UTF-16 unit. For example, (Py_UCS2)(block >> 32) should
be written (Py_UCS2)((block >> 32) & 0xffff). |
|
Date |
User |
Action |
Args |
2012-03-20 14:04:48 | vstinner | set | recipients:
+ vstinner, pitrou, benjamin.peterson, skrah, serhiy.storchaka |
2012-03-20 14:04:48 | vstinner | link | issue14249 messages |
2012-03-20 14:04:47 | vstinner | create | |
|