summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2019-05-22 15:37:57 +0200
committerLuboš Luňák <l.lunak@collabora.com>2019-05-28 12:27:40 +0200
commitee22409ab6187d3545db71d255ec3866262baa6e (patch)
tree82e5d2e654e5e1e38dc888fddf96f487248a5986 /include
parente43f0657f19f9de8d351bb6b416b7fd7f570e3ff (diff)
try harder not to deflate small streams in a thread
E.g. with the bugdoc from tdf#93553, most of the streams to save are actually small, they just do not provide XSeekable. Since it seems all the streams are already fully available by the time the zip packaging is done, fallback to XInputStream::available() to find out if the stream is small. With this, the zipping part of saving tdf#93553 is now down from ~1.5s to ~0.5s. This presumably also makes the hack for tdf#93553 unnecessary. Change-Id: Id9bb7d835400d6d8f147f5c11ade684a549aba53 Reviewed-on: https://gerrit.libreoffice.org/73030 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions