]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-119182: Optimize PyUnicode_FromFormat() (#120796)
authorVictor Stinner <vstinner@python.org>
Thu, 20 Jun 2024 19:06:16 +0000 (21:06 +0200)
committerGitHub <noreply@github.com>
Thu, 20 Jun 2024 19:06:16 +0000 (19:06 +0000)
commit5150795b1cb6393e2b34834b2729d9176315054e
tree7582d32250483f6a9cce6327f46ce96426194896
parent85d90b59e2a9185cad608c5047357be645b4d5c6
gh-119182: Optimize PyUnicode_FromFormat() (#120796)

Use strchr() and ucs1lib_find_max_char() to optimize the code path
formatting sub-strings between '%' formats.
Objects/unicodeobject.c