diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-01-07 20:51:07 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2019-01-07 20:51:07 (GMT) |
commit | c61d8701470352385bcf5720ee516ba95c4393c8 (patch) | |
tree | 498d67f3c418e7b9da5b07e1f5b6f67faa2b914f /src/markdown.cpp | |
parent | c581ea17bac7dd4ebba1ca53a55ef592f96e0117 (diff) | |
download | Doxygen-c61d8701470352385bcf5720ee516ba95c4393c8.zip Doxygen-c61d8701470352385bcf5720ee516ba95c4393c8.tar.gz Doxygen-c61d8701470352385bcf5720ee516ba95c4393c8.tar.bz2 |
issue #6734 parsing performance worsened
Diffstat (limited to 'src/markdown.cpp')
-rw-r--r-- | src/markdown.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp index b00070e..5253333 100644 --- a/src/markdown.cpp +++ b/src/markdown.cpp @@ -2451,8 +2451,8 @@ static QCString extractPageTitle(QCString &docs,QCString &id) static QCString detab(const QCString &s,int &refIndent) { static int tabSize = Config_getInt(TAB_SIZE); - GrowBuf out; int size = s.length(); + GrowBuf out(size); const char *data = s.data(); int i=0; int col=0; @@ -2601,19 +2601,20 @@ void MarkdownFileParser::parseInput(const char *fileName, } } int lineNr=1; - int position=0; // even without markdown support enabled, we still // parse markdown files as such bool markdownEnabled = Doxygen::markdownSupport; Doxygen::markdownSupport = TRUE; - bool needsEntry = FALSE; Protection prot=Public; + bool needsEntry = FALSE; + int position=0; + QCString processedDocs = preprocessCommentBlock(docs,fileName,lineNr); while (parseCommentBlock( this, current, - docs, + processedDocs, fileName, lineNr, FALSE, // isBrief |