summaryrefslogtreecommitdiff
path: root/Python/pystate.c
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2019-08-08 17:57:10 +0900
committerGitHub <noreply@github.com>2019-08-08 17:57:10 +0900
commit2a570af12ac5e4ac5575a68f8739b31c24d01367 (patch)
tree0f1714b6c8defe05ac81bc17863d6eb479117e04 /Python/pystate.c
parente43e7ed36480190083740fd75e2b9cdca72f1a68 (diff)
downloadcpython-git-2a570af12ac5e4ac5575a68f8739b31c24d01367.tar.gz
bpo-37587: optimize json.loads (GH-15134)
Use a tighter scope temporary variable to help register allocation. 1% speedup for large string. Use PyDict_SetItemDefault() for memoizing keys. At most 4% speedup when the cache hit ratio is low.
Diffstat (limited to 'Python/pystate.c')
0 files changed, 0 insertions, 0 deletions