-
-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimize ASCII/latin1 encoder with surrogateescape error handlers #69414
Comments
Attached patch is based on faster_surrogates_hadling.patch written by Serhiy Storchaka for the issue bpo-24870. It optimizes str.encode('ascii', 'surrogateescape') and str.encode('ascii', 'latin1'). |
New changeset fa65c32d7134 by Victor Stinner in branch 'default': |
Updated test now with more unit tests. |
Result of a micro-benchmark with encode_ucs1_surrogateescape-2.patch. Common platform: Platform of campaign before: Platform of campaign after: -----------------------+-------------+--------------- -----------------------+-------------+--------------- --------+-------------+--------------- |
New changeset 128a3f03ddeb by Victor Stinner in branch 'default': |
INADA Naoki: The ASCII and latin1 encoders are now up to 3 times as fast when the surrogateescape error handler is used in Python 3.6. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: