diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-04-24 06:27:22 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-04-24 07:03:09 (GMT) |
commit | 9e2b6a2dac870b5daabde118c5327281e3f79ba2 (patch) | |
tree | 39e49bae6eeb116f19be64a19eb9d3ff26a6c36c /src/pre.l | |
parent | cd581388f3d013c501e3cefbaf3e81cf93d46fcb (diff) | |
download | Doxygen-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.l | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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'); |