diff options
author | Tor Lillqvist <tml@collabora.com> | 2017-08-16 12:21:53 +0300 |
---|---|---|
committer | Dennis Francis <dennis.francis@collabora.co.uk> | 2017-11-21 16:09:40 +0530 |
commit | 99a36cb35c92e3e6b4ff2db257df221cb74c9eae (patch) | |
tree | 5d06a7a170b883702dd3f481d62fe36462dc6291 /sc/source/ui/docshell/docsh4.cxx | |
parent | a60ffa6985dec32cc73032a7774f58694a6ee9a7 (diff) |
First steps for Calc parallelism
For now, formula group calculations are done in parallel threads when
1) OpenCL is not used, and 2) the environment variable
CPU_THREADED_CALCULATION is set. This commit is a surely broken first
step and does not actually work that well at all.
Change-Id: Ia7e5019703ba89bff0695faef0f7504765061149
Diffstat (limited to 'sc/source/ui/docshell/docsh4.cxx')
-rw-r--r-- | sc/source/ui/docshell/docsh4.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx index e5620e8dd74a..60beffb4bfff 100644 --- a/sc/source/ui/docshell/docsh4.cxx +++ b/sc/source/ui/docshell/docsh4.cxx @@ -1337,6 +1337,7 @@ void ScDocShell::DoRecalc( bool bApi ) void ScDocShell::DoHardRecalc() { + auto start = std::chrono::steady_clock::now(); WaitObject aWaitObj( GetActiveDialogParent() ); ScTabViewShell* pSh = GetBestViewShell(); if ( pSh ) @@ -1367,6 +1368,8 @@ void ScDocShell::DoHardRecalc() aDocument.SetStreamValid(nTab, false); PostPaintGridAll(); + auto end = std::chrono::steady_clock::now(); + SAL_INFO("sc.timing", "ScDocShell::DoHardRecalc(): took " << std::chrono::duration_cast<std::chrono::milliseconds>(end - start).count() << "ms"); } void ScDocShell::DoAutoStyle( const ScRange& rRange, const OUString& rStyle ) |