]> granicus.if.org Git - python/commit
Issue #24870: Optimize the ASCII decoder for error handlers: surrogateescape,
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 21 Sep 2015 21:06:27 +0000 (23:06 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 21 Sep 2015 21:06:27 +0000 (23:06 +0200)
commitf96418de05fc8710f9dc1e3a19878f8e744956f2
tree6882ce050257fcb75357680e20d92d58f4e9acc9
parentba4529593877f2016215149912496e030782a57e
Issue #24870: Optimize the ASCII decoder for error handlers: surrogateescape,
ignore and replace. Initial patch written by Naoki Inada.

The decoder is now up to 60 times as fast for these error handlers.

Add also unit tests for the ASCII decoder.
Doc/whatsnew/3.6.rst
Lib/test/test_codecs.py
Objects/unicodeobject.c