diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-09-27 21:46:36 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-10-23 11:53:18 +0200 |
commit | 50d2ffd2a107ae8fd5c3e53f4f75234ad37081ea (patch) | |
tree | 605ca6436b643779c59992c02d9bfdc4e335c42c /include/sax | |
parent | e1c503a2e3309d9f738d7f702a562509899fdb3f (diff) |
FastSerializer: Use FastAttributeList directly to write faster.
Change-Id: I28085d4e060bcf052e6aa97a0822a4d653d7c066
Diffstat (limited to 'include/sax')
-rw-r--r-- | include/sax/fastattribs.hxx | 2 | ||||
-rw-r--r-- | include/sax/fshelper.hxx | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/include/sax/fastattribs.hxx b/include/sax/fastattribs.hxx index 6d9c7a4faa5e..525548105cbd 100644 --- a/include/sax/fastattribs.hxx +++ b/include/sax/fastattribs.hxx @@ -85,6 +85,8 @@ public: void addNS( sal_Int32 nNamespaceToken, sal_Int32 nToken, const OString& rValue ); void addUnknown( const OUString& rNamespaceURL, const OString& rName, const sal_Char* pValue ); void addUnknown( const OString& rName, const sal_Char* pValue ); + const std::vector< sal_Int32 >& getFastAttributeTokens() const { return maAttributeTokens; } + const char* getFastAttributeValue(size_t nIndex) const { return mpChunk + maAttributeValues[nIndex]; } // performance sensitive shortcuts to avoid allocation ... bool getAsInteger( sal_Int32 nToken, sal_Int32 &rInt); diff --git a/include/sax/fshelper.hxx b/include/sax/fshelper.hxx index d83ce786ab2b..5630910ed240 100644 --- a/include/sax/fshelper.hxx +++ b/include/sax/fshelper.hxx @@ -20,9 +20,7 @@ #ifndef INCLUDED_SAX_FSHELPER_HXX #define INCLUDED_SAX_FSHELPER_HXX -#include <com/sun/star/uno/XReference.hpp> #include <com/sun/star/io/XOutputStream.hpp> -#include <com/sun/star/xml/sax/XFastTokenHandler.hpp> #include <stdarg.h> #include <boost/shared_ptr.hpp> #include <sax/fastattribs.hxx> @@ -185,8 +183,7 @@ private: void singleElementInternal(sal_Int32 elementTokenId, ...); FastSaxSerializer* mpSerializer; - com::sun::star::uno::Reference<com::sun::star::xml::sax::XFastTokenHandler> mxTokenHandler; - + FastAttributeList maAttrList; }; typedef boost::shared_ptr< FastSerializerHelper > FSHelperPtr; |