[Libreoffice-commits] core.git: Branch 'feature/perfwork5' - sc/source

Michael Meeks michael.meeks at collabora.com
Wed Nov 12 02:34:18 PST 2014


 sc/source/filter/oox/workbookfragment.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d57860642651362092e8af0f7b447d5da24d0b05
Author: Michael Meeks <michael.meeks at collabora.com>
Date:   Wed Nov 12 10:05:39 2014 +0000

    sc: one CPU is parsing, one is populating -> halve the thread count.
    
    Change-Id: I6ec73098fe5f3e2358185e2f6c65b6deb8533900

diff --git a/sc/source/filter/oox/workbookfragment.cxx b/sc/source/filter/oox/workbookfragment.cxx
index fd95bf6..304c43e 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();
 


More information about the Libreoffice-commits mailing list