Optimize ascii/latin1+surrogateescape encoders

Issue #25227: Optimize ASCII and latin1 encoders with the ``surrogateescape``
error handler: the encoders are now up to 3 times as fast.

Initial patch written by Serhiy Storchaka.
This commit is contained in:
Victor Stinner 2015-09-29 12:32:13 +02:00
parent 5fbeabcbb6
commit c3713e9706
4 changed files with 83 additions and 0 deletions

View file

@ -117,6 +117,9 @@ Optimizations
* The ASCII decoder is now up to 60 times as fast for error handlers:
``surrogateescape``, ``ignore`` and ``replace``.
* The ASCII and the Latin1 encoders are now up to 3 times as fast for the error
error ``surrogateescape``.
Build and C API Changes
=======================