summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_streams.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-06-20 18:35:35 (GMT)
committerGitHub <noreply@github.com>2024-06-20 18:35:35 (GMT)
commit73b4492c19f494c1b10dfa0b80840a52ce3c63a2 (patch)
treed125e52d81b43b51f168619e482e0c5918323ada /Lib/test/test_asyncio/test_streams.py
parent31ce5c05a489fa22f30c4afdec162e4e669af15a (diff)
downloadcpython-73b4492c19f494c1b10dfa0b80840a52ce3c63a2.zip
cpython-73b4492c19f494c1b10dfa0b80840a52ce3c63a2.tar.gz
cpython-73b4492c19f494c1b10dfa0b80840a52ce3c63a2.tar.bz2
gh-119182: Use public PyUnicodeWriter API in ga_repr() (#120799)
The public PyUnicodeWriter API enables overallocation by default and so is more efficient. Benchmark: python -m pyperf timeit \ -s 't = list[int, float, complex, str, bytes, bytearray, ' \ 'memoryview, list, dict]' \ 'str(t)' Result: 1.49 us +- 0.03 us -> 1.10 us +- 0.02 us: 1.35x faster
Diffstat (limited to 'Lib/test/test_asyncio/test_streams.py')
0 files changed, 0 insertions, 0 deletions