]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-133968: Add fast path to PyUnicodeWriter_WriteStr() (GH-133969) (#133971)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 13 May 2025 13:58:25 +0000 (15:58 +0200)
committerGitHub <noreply@github.com>
Tue, 13 May 2025 13:58:25 +0000 (13:58 +0000)
commit5632e93f467564a1d09bd6d38caef6c4fa1f047f
tree7500e5716ad4f05231374c64d8898c5fdde25993
parent69b4387f78f413e8c47572a85b3478c47eba8142
[3.14] gh-133968: Add fast path to PyUnicodeWriter_WriteStr() (GH-133969) (#133971)

gh-133968: Add fast path to PyUnicodeWriter_WriteStr() (GH-133969)

Don't call PyObject_Str() if the input type is str.
(cherry picked from commit fe9f6e829a535747b1e06d9bfda033a9a47165ed)

Co-authored-by: Victor Stinner <vstinner@python.org>
Objects/unicodeobject.c