summaryrefslogtreecommitdiff
path: root/sc/inc/dpcache.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-03-15 20:23:10 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-03-15 21:54:06 -0400
commit9e19cf80c080929c914dc0bfa069f22c8526c3b0 (patch)
tree584a3f5c7f8ac01c3078e3b25b80d077956dc2ba /sc/inc/dpcache.hxx
parentdbf3b4ab772a398ba397ea763deb6003adaf0586 (diff)
We don't need these extra order index array; items are already sorted.
This shaves off extra 5MB of memory with my test document.
Diffstat (limited to 'sc/inc/dpcache.hxx')
-rw-r--r--sc/inc/dpcache.hxx16
1 files changed, 4 insertions, 12 deletions
diff --git a/sc/inc/dpcache.hxx b/sc/inc/dpcache.hxx
index 65669791cbe1..1e26688890f1 100644
--- a/sc/inc/dpcache.hxx
+++ b/sc/inc/dpcache.hxx
@@ -80,7 +80,10 @@ public:
*/
boost::scoped_ptr<GroupItems> mpGroup;
- ItemsType maItems; /// Unique values in the field.
+ /**
+ * Unique values in the field, stored in ascending order.
+ */
+ ItemsType maItems;
/**
* Original source data represented as indices to the unique value
@@ -89,17 +92,6 @@ public:
*/
IndexArrayType maData;
- /**
- * Ascending order of field items.
- */
- IndexArrayType maGlobalOrder;
-
- /**
- * Ranks of each unique data represented by their index. It's a
- * reverse mapping of item index to global order index.
- */
- mutable IndexArrayType maIndexOrder;
-
sal_uLong mnNumFormat;
Field();