Serhiy Storchaka <storch...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue14249> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com