• Matthew Somerville's avatar
    Fixed #24242 -- Improved efficiency of utils.text.compress_sequence() · caa3562d
    Matthew Somerville yazdı
    The function no longer flushes zfile after each write as doing so can
    lead to the gzipped streamed content being larger than the original
    content; each flush adds a 5/6 byte type 0 block. Removing this means
    buf.read() may return nothing, so only yield if that has some data.
    Testing shows without the flush() the buffer is being flushed every 17k
    or so and compresses the same as if it had been done as a whole string.
    caa3562d
Adı
Son kayıt (commit)
Son güncelleme
.tx Loading commit data...
django Loading commit data...
docs Loading commit data...
extras Loading commit data...
scripts Loading commit data...
tests Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.hgignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.rst Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
MANIFEST.in Loading commit data...
README.rst Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...