diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2010-11-30 23:26:34 -0500 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2010-12-02 16:06:51 -0500 |
commit | cf687f01ebcf5123c087c70a78b556893badd8ab (patch) | |
tree | 75b2d8300e2857614de67ca62e3bf58c83b6c88a /sc/source/filter/xml/XMLStylesExportHelper.hxx | |
parent | 09174637e0cc51142f909420531ee5d161ee0885 (diff) |
Replaced the inner vector with flat_segment_tree.
This dramatically reduced memory footprint per sheet during export
to ods. With my test doc with 293 sheets, the resident memory size
dropped from 1.4 GB to 270 MB.
Diffstat (limited to 'sc/source/filter/xml/XMLStylesExportHelper.hxx')
-rw-r--r-- | sc/source/filter/xml/XMLStylesExportHelper.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/xml/XMLStylesExportHelper.hxx b/sc/source/filter/xml/XMLStylesExportHelper.hxx index 4597ae91f459..cdaef42c950f 100644 --- a/sc/source/filter/xml/XMLStylesExportHelper.hxx +++ b/sc/source/filter/xml/XMLStylesExportHelper.hxx @@ -275,8 +275,8 @@ public: class ScRowStyles : public ScColumnRowStylesBase { - typedef std::vector<sal_Int32> ScMysalInt32Vec; - ::boost::ptr_vector<ScMysalInt32Vec> aTables; + typedef ::mdds::flat_segment_tree<sal_Int32, sal_Int32> StylesType; + ::boost::ptr_vector<StylesType> aTables; public: ScRowStyles(); |