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/classlist.cpp | |
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/classlist.cpp')
-rw-r--r-- | src/classlist.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/classlist.cpp b/src/classlist.cpp index 5e14051..ee4ffa4 100644 --- a/src/classlist.cpp +++ b/src/classlist.cpp @@ -166,9 +166,8 @@ void GenericsSDict::insert(const QCString &key,ClassDef *cd) { int i=key.find('<'); if (i==-1) return; - ArgumentList argList; - stringToArgumentList(SrcLangExt_CSharp, key.mid(i),argList); - int c = (int)argList.size(); + auto argList = stringToArgumentList(SrcLangExt_CSharp, key.mid(i)); + int c = (int)argList->size(); if (c==0) return; GenericsCollection *collection = m_dict.find(key.left(i)); if (collection==0) // new name @@ -199,9 +198,8 @@ ClassDef *GenericsSDict::find(const QCString &key) GenericsCollection *collection = m_dict.find(key.left(i)); if (collection) { - ArgumentList argList; - stringToArgumentList(SrcLangExt_CSharp,key.mid(i),argList); - int c = (int)argList.size(); + auto argList = stringToArgumentList(SrcLangExt_CSharp,key.mid(i)); + int c = (int)argList->size(); return collection->find(c); } } |