[issue20879] base64 module of Python 3.4 uses 920 kB of memory
STINNER Victor
report at bugs.python.org
Fri Mar 14 17:58:53 CET 2014
STINNER Victor added the comment:
Serhiy wrote on Rietveld:
"As far as this constant is repeated twice, it wastes memory and errorprone."
Oh, I expected marshal to be smart and use references, but it does not.
Here is a simpler patch which initialize all base85 tables at once using a "b85alphabet" variable which simplify also the initialization of the decoder table.
----------
Added file: http://bugs.python.org/file34421/base64_urlparse_lazy_init-3.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20879>
_______________________________________
More information about the Python-bugs-list
mailing list