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

New commits:
commit d57860642651362092e8af0f7b447d5da24d0b05
Author: Michael Meeks <michael.me...@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();
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to