[issue20879] base64 module of Python 3.4 uses 920 kB of memory

STINNER Victor report at bugs.python.org
Mon Mar 10 11:41:21 CET 2014


STINNER Victor added the comment:

base64_on_demand.patch: create tables the first time they are needed.

b85decode() already uses such trick to build _b85dec.

Note: a85decode() doesn't use a precomputed table.

> 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.

Yes, a C extension may be even faster. But I'm not interested to work on such enhance, I just want to fix the regression in memory usage right now.

----------
keywords: +patch
Added file: http://bugs.python.org/file34327/base64_on_demand.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20879>
_______________________________________


More information about the Python-bugs-list mailing list