summaryrefslogtreecommitdiff
path: root/Python/pyarena.c
diff options
context:
space:
mode:
authorMarco Paolini <mpaolini@users.noreply.github.com>2019-07-30 15:16:34 +0100
committerNick Coghlan <ncoghlan@gmail.com>2019-07-31 00:16:34 +1000
commit8a758f5b99c5fc3fd32edeac049d7d4a4b7cc163 (patch)
treed56c7f01cdf44565a93f5a3373fb2992fccaf5ee /Python/pyarena.c
parent9211e2fd81fe1db6f73ded70752b144cc9691ab6 (diff)
downloadcpython-git-8a758f5b99c5fc3fd32edeac049d7d4a4b7cc163.tar.gz
bpo-37587: Make json.loads faster for long strings (GH-14752)
When scanning the string, most characters are valid, so checking for invalid characters first means never needing to check the value of strict on valid strings, and only needing to check it on invalid characters when doing non-strict parsing of invalid strings. This provides a measurable reduction in per-character processing time (~11% in the pre-merge patch testing).
Diffstat (limited to 'Python/pyarena.c')
0 files changed, 0 insertions, 0 deletions