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/htmlentity.cpp | |
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/htmlentity.cpp')
-rw-r--r-- | src/htmlentity.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/htmlentity.cpp b/src/htmlentity.cpp index f5ddd6f..8f2eb78 100644 --- a/src/htmlentity.cpp +++ b/src/htmlentity.cpp @@ -15,6 +15,7 @@ #include "htmlentity.h" #include "message.h" +#include "textstream.h" //! Number of doxygen commands mapped as if it were HTML entities static const int g_numberHtmlMappedCmds = 11; @@ -473,7 +474,7 @@ DocSymbol::SymType HtmlEntityMapper::name2sym(const QCString &symName) const return it!=m_name2sym.end() ? it->second : DocSymbol::Sym_Unknown; } -void HtmlEntityMapper::writeXMLSchema(std::ostream &t) +void HtmlEntityMapper::writeXMLSchema(TextStream &t) { for (int i=0;i<g_numHtmlEntities - g_numberHtmlMappedCmds;i++) { |