Update script types of all cells in sort range ahead of time

Desktop / LibreOffice - Kohei Yoshida [collabora.com] - 23 April 2014 20:08 UTC

To ensure that there is no SC_SCRIPTTYPE_UNKNOWN in the sort range, the presence of which would slow down during AdjustRowHeight().

This only adds a tiny overhead (0.3 second) and cuts the duration of AdjustRowHeight() from 15 seconds to 5 seconds.

832bee9 Update script types of all cells in sort range ahead of time.
sc/inc/column.hxx | 1 +
sc/inc/document.hxx | 1 +
sc/inc/table.hxx | 1 +
sc/source/core/data/column4.cxx | 104 ++++++++++++++++++++++++++++++++++++
sc/source/core/data/document10.cxx | 9 ++++
sc/source/core/data/table7.cxx | 9 ++++
sc/source/ui/docshell/dbdocfun.cxx | 9 +++-
7 files changed, 133 insertions(+), 1 deletion(-)

Upstream: cgit.freedesktop.org


  • Share