summaryrefslogtreecommitdiff
path: root/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2014-06-20 13:50:32 +0100
committerMichael Meeks <michael.meeks@collabora.com>2014-06-23 15:42:46 +0100
commit295b97b2a654e00ac5a8e6a3545284fa583fce78 (patch)
tree08a949fd0bd861149776dd4cb55d2d5cbebc24df /writerfilter/source/ooxml/OOXMLFastContextHandler.hxx
parent9e5e9dd1b276043d2e9f45c01d72b2e89d8abdf2 (diff)
fdo#76260 - Switch from vector to std::stack.
std::stack uses std::deque which is extremely expensive for this case. This change saves 43bn of 98bn cycles spent in createFastChildContext. Change-Id: I63919a9826563171f128e09d7206ac6cfdde336f
Diffstat (limited to 'writerfilter/source/ooxml/OOXMLFastContextHandler.hxx')
-rw-r--r--writerfilter/source/ooxml/OOXMLFastContextHandler.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx b/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx
index 053985dbb700..88b1b80cd83a 100644
--- a/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx
+++ b/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx
@@ -290,7 +290,7 @@ private:
uno::Reference< uno::XComponentContext > m_xContext;
bool m_bDiscardChildren;
bool m_bTookChoice; ///< Did we take the Choice or want Fallback instead?
- std::stack<SavedAlternateState> m_aSavedAlternateStates;
+ std::vector<SavedAlternateState> m_aSavedAlternateStates;
static sal_uInt32 mnInstanceCount;