STINNER Victor added the comment: Here is an initial attempt: set a custom allocator for bz2, lzma and zlib modules. The allocator is only replaced for an instance of a compressor or decompress, the change does not affect the library globally.
PyMem_RawMalloc() is used instead of PyMem_Malloc() because the GIL is always released. ---------- keywords: +patch Added file: http://bugs.python.org/file30673/set_custom_alloc.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18227> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com