Kaydet (Commit) d677bf45 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Globally disable threading for these for now.

It doesn't win us much performance-wise (as it turned out), and causes
weird crashers with large documents.

Change-Id: I0566ce850b8f6656e6f9821c653b7a825a7874a3
(cherry picked from commit e0425f94)
üst 041694ab
......@@ -810,6 +810,8 @@ bool ZipPackageStream::saveChild(
if (xSeek.is() && xSeek->getLength() < 100000)
bParallelDeflate = false;
bParallelDeflate = false; // globally disable parallel deflate for now.
if (bParallelDeflate)
{
// Start a new thread deflating this zip entry
......
......@@ -2069,6 +2069,7 @@ void XclExpRowBuffer::Finalize( XclExpDefaultRowData& rDefRowData, const ScfUInt
// on its own data.
size_t nRows = maRowMap.size();
size_t nThreads = std::max( std::thread::hardware_concurrency(), 1U );
nThreads = 1; // globally disable multi-threading for now.
if ( nThreads == 1 || nRows < 128 )
{
RowMap::iterator itr, itrBeg = maRowMap.begin(), itrEnd = maRowMap.end();
......
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