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 vstinner
Recipients malin, vstinner
Date 2020-10-26.19:45:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1603741511.47.0.484424324829.issue41486@roundup.psfhosted.org>
In-reply-to
Content
It would be interested to see if using _PyBytesWriter in bz2, lzma, zlib and _io.FileIO.readall() would speed up the code. I would prefer to centralize the buffer allocation logic in _PyBytesWriter rather than having custom code in each file. _PyBytesWriter is designed to reduce the number of realloc() by using overallocation, it uses a different overallocation ratio on Windows, and it uses a small buffer allocated on the stack for strings up to 512 bytes.
History
Date User Action Args
2020-10-26 19:45:11vstinnersetrecipients: + vstinner, malin
2020-10-26 19:45:11vstinnersetmessageid: <1603741511.47.0.484424324829.issue41486@roundup.psfhosted.org>
2020-10-26 19:45:11vstinnerlinkissue41486 messages
2020-10-26 19:45:11vstinnercreate