mirror of
https://github.com/python/cpython.git
synced 2025-10-27 08:46:53 +00:00
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:
parent
5fbeabcbb6
commit
c3713e9706
4 changed files with 83 additions and 0 deletions
|
|
@ -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
|
||||
=======================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue