[issue37587] JSON loads performance improvement for long strings

Nick Coghlan report at bugs.python.org
Tue Jul 30 10:22:29 EDT 2019


Nick Coghlan <ncoghlan at gmail.com> added the comment:

I went ahead and merged the minimal PR and flagged it for backporting to 3.8 - it's an obviously beneficial change, that clearly does less work on each pass through the loop.

Even if you are doing non-strict parsing of a string that consists entirely of invalid characters, you'll get the same level of performance that the previous code offered for all strict parsing.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37587>
_______________________________________


More information about the Python-bugs-list mailing list