summaryrefslogtreecommitdiffstats
path: root/src/pre.l
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-04-24 06:27:22 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-04-24 07:03:09 (GMT)
commit9e2b6a2dac870b5daabde118c5327281e3f79ba2 (patch)
tree39e49bae6eeb116f19be64a19eb9d3ff26a6c36c /src/pre.l
parentcd581388f3d013c501e3cefbaf3e81cf93d46fcb (diff)
downloadDoxygen-9e2b6a2dac870b5daabde118c5327281e3f79ba2.zip
Doxygen-9e2b6a2dac870b5daabde118c5327281e3f79ba2.tar.gz
Doxygen-9e2b6a2dac870b5daabde118c5327281e3f79ba2.tar.bz2
Performance improvements after profiling
In some cases performance dropped when upgrading from version 1.8.16 to 1.8.17 or 1.8.18. With these changes the performance should be back to normal again.
Diffstat (limited to 'src/pre.l')
-rw-r--r--src/pre.l4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pre.l b/src/pre.l
index 351511b..e83a204 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -2805,10 +2805,8 @@ static void addDefine(yyscan_t yyscanner)
Public,Normal,FALSE,Member,MemberType_Define,ArgumentList(),ArgumentList(),"") };
if (!state->defArgsStr.isEmpty())
{
- ArgumentList argList;
//printf("addDefine() state->defName='%s' state->defArgsStr='%s'\n",state->defName.data(),state->defArgsStr.data());
- stringToArgumentList(SrcLangExt_Cpp, state->defArgsStr,argList);
- md->setArgumentList(argList);
+ md->moveArgumentList(stringToArgumentList(SrcLangExt_Cpp, state->defArgsStr));
}
//printf("Setting initializer for '%s' to '%s'\n",state->defName.data(),state->defText.data());
int l=state->defLitText.find('\n');