summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_streams.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-06-20 18:39:34 (GMT)
committerGitHub <noreply@github.com>2024-06-20 18:39:34 (GMT)
commitc1553bc34a537e00d6513da7df1c427df3570574 (patch)
tree4c4d861f3feb9a5007f67b34484f8903359f3e7b /Lib/test/test_asyncio/test_streams.py
parent73b4492c19f494c1b10dfa0b80840a52ce3c63a2 (diff)
downloadcpython-c1553bc34a537e00d6513da7df1c427df3570574.zip
cpython-c1553bc34a537e00d6513da7df1c427df3570574.tar.gz
cpython-c1553bc34a537e00d6513da7df1c427df3570574.tar.bz2
gh-119182: Use public PyUnicodeWriter API in union_repr() (#120797)
The public PyUnicodeWriter API enables overallocation by default and so is more efficient. Benchmark: python -m pyperf timeit \ -s 't = int | float | complex | str | bytes | bytearray' \ ' | memoryview | list | dict' \ 'str(t)' Result: 1.29 us +- 0.02 us -> 1.00 us +- 0.02 us: 1.29x faster
Diffstat (limited to 'Lib/test/test_asyncio/test_streams.py')
0 files changed, 0 insertions, 0 deletions