This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Arfrever, loewis, pitrou, r.david.murray, serhiy.storchaka, vstinner
Date 2014-03-10.11:26:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I was more interested in the import time, and it has slightly increased. Memory consumption ((32**2+2*85**2)*sys.getsizeof(b'xx')/2**10 + sys.getsizeof(dict.fromkeys(range(32**2))) + 2*sys.getsizeof(dict.fromkeys(range(85**2))) + 2*(85**2-256)*sys.getsizeof(85**2) < 1MB) was seemed small compared with the overall memory usage of Python (20-25MB), so I were ignored it.

No need for lazy initialization of small tables, and the overhead of the _init_*85_tables() call for every encoding/decoding operation may be too large. Here is simpler patch.
Date User Action Args
2014-03-10 11:26:55serhiy.storchakasetrecipients: + serhiy.storchaka, loewis, pitrou, vstinner, Arfrever, r.david.murray
2014-03-10 11:26:55serhiy.storchakasetmessageid: <>
2014-03-10 11:26:55serhiy.storchakalinkissue20879 messages
2014-03-10 11:26:54serhiy.storchakacreate