Skip to content
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

bpo-39087: Make PyUnicode_AsUTF8AndSize faster. #17683

Draft
wants to merge 1 commit into
base: master
from

Conversation

@methane
Copy link
Member

methane commented Dec 23, 2019

Reduce one allocation & memcpy of the PyUnicode_AsUTF8AndSize.

See https://discuss.python.org/t/better-api-for-encoding-unicode-objects-with-utf-8/2909 for discussion.

Ref: bpo-39087

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.