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.
Showing
Please register or sign in to comment