diff options
author | Inada Naoki <songofacandy@gmail.com> | 2019-08-08 17:57:10 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-08 17:57:10 +0900 |
commit | 2a570af12ac5e4ac5575a68f8739b31c24d01367 (patch) | |
tree | 0f1714b6c8defe05ac81bc17863d6eb479117e04 /Python/dynload_aix.c | |
parent | e43e7ed36480190083740fd75e2b9cdca72f1a68 (diff) | |
download | cpython-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/dynload_aix.c')
0 files changed, 0 insertions, 0 deletions