diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-03-15 13:40:16 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-03-15 15:41:23 -0400 |
commit | fd05423b758b59451be3c250931f334011079343 (patch) | |
tree | a953ed8ba550f9a14b714f098d21f06b241d32c6 /sc/source/core/data/dpitemdata.cxx | |
parent | e6c65b03976971fbc21e7a1dec75f6713be6c322 (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.cxx | 10 |
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; |