Message379683
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. |
|
Date |
User |
Action |
Args |
2020-10-26 19:45:11 | vstinner | set | recipients:
+ vstinner, malin |
2020-10-26 19:45:11 | vstinner | set | messageid: <1603741511.47.0.484424324829.issue41486@roundup.psfhosted.org> |
2020-10-26 19:45:11 | vstinner | link | issue41486 messages |
2020-10-26 19:45:11 | vstinner | create | |
|