]> granicus.if.org Git - python/commit
bpo-37348: optimize decoding ASCII string (GH-14283)
authorInada Naoki <songofacandy@gmail.com>
Mon, 24 Jun 2019 03:30:24 +0000 (12:30 +0900)
committerGitHub <noreply@github.com>
Mon, 24 Jun 2019 03:30:24 +0000 (12:30 +0900)
commit770847a7db33b3d4c451b42372b6942687aa6121
tree04aaf3163636bed947763435ad03a76b6f211d7b
parentb3ca7972c8d8c6479b6542ce28e0f7a6ebd5b8fe
bpo-37348: optimize decoding ASCII string (GH-14283)

`_PyUnicode_Writer` is a relatively complex structure.  Initializing it is significant overhead when decoding short ASCII string.
Misc/NEWS.d/next/Core and Builtins/2019-06-23-00-26-30.bpo-37348.pp8P-x.rst [new file with mode: 0644]
Objects/unicodeobject.c