summaryrefslogtreecommitdiff
path: root/sc/source/core/data/dpitemdata.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-03-15 13:40:16 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-03-15 15:41:23 -0400
commitfd05423b758b59451be3c250931f334011079343 (patch)
treea953ed8ba550f9a14b714f098d21f06b241d32c6 /sc/source/core/data/dpitemdata.cxx
parente6c65b03976971fbc21e7a1dec75f6713be6c322 (diff)
Better algorithm to (re-)populate the cache.
With my test document, this brings the reload time down from 30 seconds to 19 seconds. I was expecting a much better outcome, but this is still better than the current.
Diffstat (limited to 'sc/source/core/data/dpitemdata.cxx')
-rw-r--r--sc/source/core/data/dpitemdata.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/sc/source/core/data/dpitemdata.cxx b/sc/source/core/data/dpitemdata.cxx
index 43c01cbcb096..5b89aef6e3b6 100644
--- a/sc/source/core/data/dpitemdata.cxx
+++ b/sc/source/core/data/dpitemdata.cxx
@@ -211,6 +211,16 @@ bool ScDPItemData::operator== (const ScDPItemData& r) const
return GetString() == r.GetString();
}
+bool ScDPItemData::operator!= (const ScDPItemData& r) const
+{
+ return !operator== (r);
+}
+
+bool ScDPItemData::operator< (const ScDPItemData& r) const
+{
+ return Compare(*this, r) == -1;
+}
+
ScDPItemData& ScDPItemData::operator= (const ScDPItemData& r)
{
meType = r.meType;