gh-125196: Add fast-path for int in PyUnicodeWriter_WriteStr() by vstinner · Pull Request #125214 · python/cpython · GitHub
Skip to content

gh-125196: Add fast-path for int in PyUnicodeWriter_WriteStr() - #125214

Merged
vstinner merged 1 commit into
python:mainfrom
vstinner:writer_specialize
Oct 9, 2024
Merged

vstinner merged 1 commit into
python:mainfrom
vstinner:writer_specialize

Conversation

@vstinner

@vstinner vstinner commented Oct 9, 2024

Copy link
Copy Markdown
Member

PyUnicodeWriter_WriteStr() and PyUnicodeWriter_WriteRepr() now call directly _PyLong_FormatWriter() if the object is an int.

PyUnicodeWriter_WriteStr() and PyUnicodeWriter_WriteRepr() now call
directly _PyLong_FormatWriter() if the object is an int.
@vstinner

vstinner commented Oct 9, 2024

Copy link
Copy Markdown
Member Author

@vstinner
vstinner merged commit ee3167b into python:main Oct 9, 2024
@vstinner
vstinner deleted the writer_specialize branch October 9, 2024 22:01
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.

1 participant