Skip to content

bpo-37388: Add PyUnicode_Decode(str, 0) fast-path #14385

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

Merged
merged 1 commit into from
Jun 25, 2019
Merged

bpo-37388: Add PyUnicode_Decode(str, 0) fast-path #14385

merged 1 commit into from
Jun 25, 2019

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jun 25, 2019

Add a fast-path to PyUnicode_Decode() for size equals to 0.

https://bugs.python.org/issue37388

Add a fast-path to PyUnicode_Decode() for size equals to 0.
@vstinner
Copy link
Member Author

PyUnicode_FromEncodedObject() already has the same fast-path.

@vstinner vstinner merged commit ed076ed into python:master Jun 25, 2019
@vstinner vstinner deleted the unicode_decode0 branch June 25, 2019 23:49
lisroach pushed a commit to lisroach/cpython that referenced this pull request Sep 10, 2019
Add a fast-path to PyUnicode_Decode() for size equals to 0.
DinoV pushed a commit to DinoV/cpython that referenced this pull request Jan 14, 2020
Add a fast-path to PyUnicode_Decode() for size equals to 0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants