diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2021-03-28 11:58:30 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2021-03-28 12:25:48 (GMT) |
commit | c48639744a6fa118b9851b307107994ba93ce4c8 (patch) | |
tree | 8917c567f8f00560fba4554ade2b7e79bbe3ff45 /src/latexdocvisitor.h | |
parent | cef71dc4fcfca9e3580214c39f20dc538ed6b2d9 (diff) | |
download | Doxygen-c48639744a6fa118b9851b307107994ba93ce4c8.zip Doxygen-c48639744a6fa118b9851b307107994ba93ce4c8.tar.gz Doxygen-c48639744a6fa118b9851b307107994ba93ce4c8.tar.bz2 |
Refactoring: Add TextStream buffer to improve output writing performance
- direct use of std::stringstream and std::ostream gave a 30%
drop in performance.
Diffstat (limited to 'src/latexdocvisitor.h')
-rw-r--r-- | src/latexdocvisitor.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/latexdocvisitor.h b/src/latexdocvisitor.h index 5e590eb..8c04f39 100644 --- a/src/latexdocvisitor.h +++ b/src/latexdocvisitor.h @@ -22,12 +22,13 @@ #include "docvisitor.h" class LatexCodeGenerator; +class TextStream; /*! @brief Concrete visitor implementation for LaTeX output. */ class LatexDocVisitor : public DocVisitor { public: - LatexDocVisitor(std::ostream &t,LatexCodeGenerator &ci, + LatexDocVisitor(TextStream &t,LatexCodeGenerator &ci, const char *langExt,bool insideTabbing); //-------------------------------------- @@ -176,7 +177,7 @@ class LatexDocVisitor : public DocVisitor // state variables //-------------------------------------- - std::ostream &m_t; + TextStream &m_t; LatexCodeGenerator &m_ci; bool m_insidePre; bool m_insideItem; |