]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45831: _Py_DumpASCII() uses a single write() call if possible (GH-29596) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 17 Nov 2021 21:59:19 +0000 (13:59 -0800)
committerGitHub <noreply@github.com>
Wed, 17 Nov 2021 21:59:19 +0000 (22:59 +0100)
commit4ffde90dccd741b04a448f2e44f0b82a41b6fe96
tree30aa631cbe2d67a0799fff78b03ca6f04807260c
parent1079b3e3cb3eba7062e174ecc6c0ab20c2d0722e
bpo-45831: _Py_DumpASCII() uses a single write() call if possible (GH-29596) (GH-29598)

If the string is ASCII only and doesn't need to escape characters,
write the whole string with a single write() syscall.
(cherry picked from commit b919d8105c4d77f00509b6d3ab2073f09db640de)

Co-authored-by: Victor Stinner <vstinner@python.org>
Misc/NEWS.d/next/Library/2021-11-17-19-25-37.bpo-45831.9-TojK.rst [new file with mode: 0644]
Python/traceback.c