Ma Lin <[email protected]> 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 <[email protected]>
<https://bugs.python.org/issue41486>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com