Once https://github.com/python/cpython/pull/101251 is merged, the code dan be ported to this library for faster gzip writing.