summaryrefslogtreecommitdiff
path: root/tests/admin_scripts/complex_app
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2015-01-29 07:59:41 +0000
committerTim Graham <timograham@gmail.com>2015-02-04 15:17:22 -0500
commit2a55301f9fe1c3b62ad4e79c3109bec77b57b317 (patch)
treee621170182ec58b4dae2752ea0ca805389ce335e /tests/admin_scripts/complex_app
parentd585ade0dfef523c1c4be9fe6dad2dfaf3d1583d (diff)
[1.8.x] Fixed #24242 -- Improved efficiency of utils.text.compress_sequence()
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. Backport of caa3562d5bec1196502352a715a539bdb0f73c2d from master
Diffstat (limited to 'tests/admin_scripts/complex_app')
0 files changed, 0 insertions, 0 deletions