Kaydet (Commit) d09b6209 authored tarafından Matúš Kukan's avatar Matúš Kukan

package: Do not deflate small streams in a thread

Change-Id: Iae804a34f344aa793a6d5c13315f7bc1eb64c0a2
üst 062cf187
......@@ -798,6 +798,11 @@ bool ZipPackageStream::saveChild(
else
{
bParallelDeflate = true;
// Do not deflate small streams in a thread
uno::Reference< io::XSeekable > xSeek( xStream, uno::UNO_QUERY );
if (xSeek.is() && xSeek->getLength() < 100000)
bParallelDeflate = false;
if (bParallelDeflate)
{
// Start a new thread deflating this zip entry
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment