summaryrefslogtreecommitdiff
path: root/sc/source/filter
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-12-10 10:51:01 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-12-10 10:57:08 -0500
commitd677bf455f08264096edd13e3306c55f74f7ee1d (patch)
treeb41fab8bc7f11b084f7a5b6764f6057d56296811 /sc/source/filter
parent041694abe6167ba06c89a4be6a732e4c36b86c59 (diff)
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 e0425f9493e25fa14f11505d9ebc12a2fe78d4b6)
Diffstat (limited to 'sc/source/filter')
-rw-r--r--sc/source/filter/excel/xetable.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/filter/excel/xetable.cxx b/sc/source/filter/excel/xetable.cxx
index 66df5d65a8e1..84fdaec2b157 100644
--- a/sc/source/filter/excel/xetable.cxx
+++ b/sc/source/filter/excel/xetable.cxx
@@ -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();