Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
9c88d6f2
Kaydet (Commit)
9c88d6f2
authored
Kas 15, 2017
tarafından
Dennis Francis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
halve thread count if HT active for group interpreter too
Change-Id: Iacc93122191152183127500a4172358a14e96c8b
üst
bc6a5d8e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
formulacell.cxx
sc/source/core/data/formulacell.cxx
+6
-0
No files found.
sc/source/core/data/formulacell.cxx
Dosyayı görüntüle @
9c88d6f2
...
...
@@ -49,6 +49,7 @@
#include <tokenarray.hxx>
#include <comphelper/threadpool.hxx>
#include <tools/cpuid.hxx>
#include <formula/errorcodes.hxx>
#include <formula/vectortoken.hxx>
#include <svl/intitem.hxx>
...
...
@@ -4360,6 +4361,8 @@ bool ScFormulaCell::InterpretFormulaGroup()
return
false
;
}
static
bool
bHyperThreadingActive
=
tools
::
cpuid
::
hasHyperThreading
();
// Then do the threaded calculation
class
Executor
:
public
comphelper
::
ThreadTask
...
...
@@ -4404,6 +4407,9 @@ bool ScFormulaCell::InterpretFormulaGroup()
comphelper
::
ThreadPool
&
rThreadPool
(
comphelper
::
ThreadPool
::
getSharedOptimalPool
());
sal_Int32
nThreadCount
=
rThreadPool
.
getWorkerCount
();
if
(
bHyperThreadingActive
&&
nThreadCount
>=
2
)
nThreadCount
/=
2
;
SAL_INFO
(
"sc.threaded"
,
"Running "
<<
nThreadCount
<<
" threads"
);
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment