[issue14625] Faster utf-32 decoder

2012-10-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > I applied the patch "A" with minor changes: replace multiple goto with > classic break/continue and if/else. Looks good. Thanks. -- ___ Python tracker

[issue14625] Faster utf-32 decoder

2012-10-30 Thread STINNER Victor
STINNER Victor added the comment: I applied the patch "A" with minor changes: replace multiple goto with classic break/continue and if/else. -- ___ Python tracker ___ __

[issue14625] Faster utf-32 decoder

2012-10-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9badfe3a31a7 by Victor Stinner in branch 'default': Close #14625: Rewrite the UTF-32 decoder. It is now 3x to 4x faster http://hg.python.org/cpython/rev/9badfe3a31a7 -- nosy: +python-dev resolution: -> fixed stage: patch review -> committed

[issue14625] Faster utf-32 decoder

2012-10-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > I don't know any application using UTF-32-LE or UTF-32-BE. So I don't want to > waste Python memory/code size with a heavily optimized decoder. The patch A > looks to be enough. Agree. I had the same doubts. That's why I proposed two patches for your ch

[issue14625] Faster utf-32 decoder

2012-10-29 Thread STINNER Victor
STINNER Victor added the comment: > I suggest apply patch A to 3.3 as it fixes performance > regression (2x) and is very simple. ASCII and UTF-8 are the two most common codecs in the world, so it's justified to have heavily optimized encoders and decoders. I don't know any application using UT

[issue14625] Faster utf-32 decoder

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue14625] Faster utf-32 decoder

2012-10-20 Thread Georg Brandl
Georg Brandl added the comment: That the new code is smaller is no guarantee that it's as correct :) That is exactly the reason we don't put optimizations in bugfix releases. -- ___ Python tracker

[issue14625] Faster utf-32 decoder

2012-10-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It was too complicated code. Actually patched code is smaller. 1 file changed, 71 insertions(+), 80 deletions(-) UTF-16 codec was modified in some way. -- ___ Python tracker _

[issue14625] Faster utf-32 decoder

2012-10-20 Thread Georg Brandl
Georg Brandl added the comment: Very simple? You're changing most of the code there. -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue14625] Faster utf-32 decoder

2012-10-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue14625] Faster utf-32 decoder

2012-10-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I suggest apply patch A to 3.3 as it fixes performance regression (2x) and is very simple. -- versions: +Python 3.3 ___ Python tracker ___ __

[issue14625] Faster utf-32 decoder

2012-10-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +3.3regression Added file: http://bugs.python.org/file27639/decode_utf32_b_3.patch ___ Python tracker ___ _

[issue14625] Faster utf-32 decoder

2012-10-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Patches updated to 3.4. -- keywords: +needs review versions: +Python 3.4 -Python 3.3 Added file: http://bugs.python.org/file27638/decode_utf32_a_3.patch ___ Python tracker __

[issue14625] Faster utf-32 decoder

2012-10-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file25538/decode_utf32_b_2.patch ___ Python tracker ___ ___ Python-bugs-lis

[issue14625] Faster utf-32 decoder

2012-10-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file25537/decode_utf32_a_2.patch ___ Python tracker ___ ___ Python-bugs-lis

[issue14625] Faster utf-32 decoder

2012-10-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file25279/decode_utf32_b.patch ___ Python tracker ___ ___ Python-bugs-list

[issue14625] Faster utf-32 decoder

2012-10-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file25278/decode_utf32_a.patch ___ Python tracker ___ ___ Python-bugs-list

[issue14625] Faster utf-32 decoder

2012-05-11 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +Unicode nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue14625] Faster utf-32 decoder

2012-05-11 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file25538/decode_utf32_b_2.patch ___ Python tracker ___ ___ Python-bugs-list

[issue14625] Faster utf-32 decoder

2012-05-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patches updated to stylistic conformity of the UTF-8 decoder. Patch B is significantly accelerated for aligned input data (i. e. almost always), especially for natural order. The UTF-32 decoder can now be faster than ASCII decoder! May be it is time to

[issue14625] Faster utf-32 decoder

2012-04-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here are the results of benchmarking (numbers in MB/s). On 32-bit Linux, AMD Athlon 64 X2 4600+ @ 2.4GHz: Py2.7 Py3.2 Py3.3 patchA patchB utf-32le 'A'*1 461

[issue14625] Faster utf-32 decoder

2012-04-20 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue14625] Faster utf-32 decoder

2012-04-19 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue14625] Faster utf-32 decoder

2012-04-19 Thread STINNER Victor
STINNER Victor added the comment: See also #14624 for UTF-16 decoder. -- nosy: +haypo, pitrou ___ Python tracker ___ ___ Python-bugs-

[issue14625] Faster utf-32 decoder

2012-04-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file25279/decode_utf32_b.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue14625] Faster utf-32 decoder

2012-04-19 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : I suggest two variants of patch, accelerating the utf-32 decoder. With PEP 393 utf-32 decoder slowed down up to 2x, these patches returns a performance at the level of Python 3.2 and even much higher (2-3x over 3.2). The variant A is simpler, but the vari