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:55:23 -0500
commite0425f9493e25fa14f11505d9ebc12a2fe78d4b6 (patch)
tree484c45b269b18f3182d100b922d990d957f20bd0 /sc/source/filter
parent06f85d41d02ebef76487b230f35f2ec638c46c8b (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
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();