[issue20879] base64 module of Python 3.4 uses 920 kB of memory
Martin v. Löwis
report at bugs.python.org
Mon Mar 10 11:17:03 CET 2014
Martin v. Löwis added the comment:
It's a classical time-space trade-off. I'm not sure this is a bug; if it is, the reasonable change (IMO) is to just revert the introduction of these *2 tables, and loop through the output character-by-character.
I'd personally be in favor of such a change (drop the tables). If people think that these functions are too slow, they should propose an extension of the binascii module, rather than micro-optimizing the Python code.
----------
nosy: +loewis
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20879>
_______________________________________
More information about the Python-bugs-list
mailing list