[Bug 73671] gideon takes too much memory for big projects
Jens Dagerbo
jens.dagerbo at swipnet.se
Thu Jan 29 03:02:04 UTC 2004
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=73671
------- Additional Comments From jens.dagerbo at swipnet.se 2004-01-29 03:01 -------
I did the same test as Sascha and came to about the same results. On my box parsing of the 2.6.0 sources shrank from 1,5h to about 15 min.
We both think it makes sense to not update the problem reporter during the initial import of a new project. This trivial patch fixes that:
RCS file: /home/kde/kdevelop/languages/cpp/cppsupportpart.h,v
retrieving revision 1.77
diff -u -r1.77 cppsupportpart.h
--- cppsupportpart.h 14 Nov 2003 16:21:25 -0000 1.77
+++ cppsupportpart.h 29 Jan 2004 01:51:48 -0000
@@ -62,7 +62,7 @@
QString specialHeaderName( bool local=false ) const;
void updateParserConfiguration();
- ProblemReporter* problemReporter() { return m_problemReporter; }
+ ProblemReporter* problemReporter() { return isValid() ? m_problemReporter : 0; }
BackgroundParser* backgroundParser() { return m_backgroundParser; }
CppCodeCompletion* codeCompletion() { return m_pCompletion; }
CppCodeCompletionConfig* codeCompletionConfig() { return m_pCompletionConfig; }
What do you think, Roberto? :)
More information about the KDevelop-devel
mailing list