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

Serhiy Storchaka report at bugs.python.org
Fri Mar 14 18:43:58 CET 2014


Serhiy Storchaka added the comment:

I don't like base64_urlparse_lazy_init-3.patch at all. It waste memory and time for initializing of non-needed tables in case when only encoding or only decoding is used.

Here is new patch based on base64_urlparse_lazy_init-2.patch. Unlike to my patch, it delays initialization of small tables too. Unlike to Victor's patches it initializes only needed tables and delays initialization of b32 tables.

----------
Added file: http://bugs.python.org/file34423/base64_urlparse_lazy_init-4.patch

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


More information about the Python-bugs-list mailing list