[issue41486] Add _BlocksOutputBuffer for bz2/lzma/zlib module
Ma Lin
report at bugs.python.org
Wed Oct 28 02:28:16 EDT 2020
Ma Lin <malincns at 163.com> added the comment:
I modify lzma module to use different growth factors, see attached picture different_factors.png
1.5x should be the growth factor of _PyBytesWriter under Windows.
So if change _PyBytesWriter to use memory blocks, maybe there will be no performance improvement.
Over allocate factor of _PyBytesWriter:
# ifdef MS_WINDOWS
# define OVERALLOCATE_FACTOR 2
# else
# define OVERALLOCATE_FACTOR 4
# endif
(I'm using Windows 10)
----------
Added file: https://bugs.python.org/file49544/different_factors.png
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41486>
_______________________________________
More information about the Python-bugs-list
mailing list