[issue44334] Use bytearray in urllib.unquote_to_bytes
Gregory P. Smith
report at bugs.python.org
Mon Jun 7 16:09:04 EDT 2021
Gregory P. Smith <greg at krypto.org> added the comment:
fwiw this sort of thing may be reasonable to backport to 3.9 as it is more than just a performance enhancement but also a resource consumption bug and should result in no behavior change.
"""
In case of form contain very large data ( in my case the string to parse was about 6000000 byte )
Old code use list of bytes during parsing consumes a lot of memory
New code will use bytearry , which use less memory
""" - text from the original PR
----------
nosy: +gregory.p.smith
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44334>
_______________________________________
More information about the Python-bugs-list
mailing list