]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-125196: Add fast-path for int in PyUnicodeWriter_WriteStr() (#125214)
authorVictor Stinner <vstinner@python.org>
Wed, 9 Oct 2024 22:01:02 +0000 (00:01 +0200)
committerGitHub <noreply@github.com>
Wed, 9 Oct 2024 22:01:02 +0000 (00:01 +0200)
commitee3167b9787bf9424d5637a224233de775450231
tree90ceea3abc20b75d8ab6f3811864acbb65eb2672
parent0c5a48c1c9039eb1ce25a96c43505c4de0a0b9d7
gh-125196: Add fast-path for int in PyUnicodeWriter_WriteStr() (#125214)

PyUnicodeWriter_WriteStr() and PyUnicodeWriter_WriteRepr() now call
directly _PyLong_FormatWriter() if the argument is an int.
Objects/unicodeobject.c