[issue14249] unicodeobject.c: aliasing warnings

Serhiy Storchaka report at bugs.python.org
Tue Mar 20 14:50:24 CET 2012


Serhiy Storchaka <storchaka at gmail.com> added the comment:

What if add more hacking? If long integer already used for buffering and checking, let use it for swapping and splitting too.

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.

----------
nosy: +storchaka
Added file: http://bugs.python.org/file24957/utf16_decoder_shift.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14249>
_______________________________________


More information about the Python-bugs-list mailing list