diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2014-11-12 10:05:39 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2014-11-12 10:05:39 +0000 |
commit | d57860642651362092e8af0f7b447d5da24d0b05 (patch) | |
tree | 7dffa8fbb9b17a37a11f1c106054312c6246e0c3 | |
parent | Add a means to dump the state of the area broadcaster slot machine. (diff) | |
download | core-d57860642651362092e8af0f7b447d5da24d0b05.tar.gz core-d57860642651362092e8af0f7b447d5da24d0b05.zip |
sc: one CPU is parsing, one is populating -> halve the thread count.
Change-Id: I6ec73098fe5f3e2358185e2f6c65b6deb8533900
-rw-r--r-- | sc/source/filter/oox/workbookfragment.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/oox/workbookfragment.cxx b/sc/source/filter/oox/workbookfragment.cxx index fd95bf65d3a5..304c43eb8c7b 100644 --- a/sc/source/filter/oox/workbookfragment.cxx +++ b/sc/source/filter/oox/workbookfragment.cxx @@ -298,7 +298,7 @@ public: void importSheetFragments( WorkbookFragment& rWorkbookHandler, SheetFragmentVector& rSheets ) { - sal_Int32 nThreads = std::min( rSheets.size(), (size_t) std::max(std::thread::hardware_concurrency(), 1U) ); + sal_Int32 nThreads = std::min( rSheets.size(), (size_t) std::max(std::thread::hardware_concurrency()/2, 1U) ); Reference< XComponentContext > xContext = comphelper::getProcessComponentContext(); |