Ma Lin <malin...@163.com> added the comment:
Maybe the zlib module can also use the same algorithm. zlib module's initial buffer size is 16KB [1], each time the size doubles [2]. [1] zlib module's initial buffer size: https://github.com/python/cpython/blob/v3.9.0b4/Modules/zlibmodule.c#L32 [2] zlib module buffer growth algorithm: https://github.com/python/cpython/blob/v3.9.0b4/Modules/zlibmodule.c#L174 ---------- nosy: +inada.naoki, rhettinger _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41265> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com