[Bug 61317] Gideon burns a lot of cpu cycles

Amilcar do Carmo Lucas amilcar at ida.ing.tu-bs.de
Fri Sep 5 15:27:05 UTC 2003


------- 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=61317     
amilcar at ida.ing.tu-bs.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From amilcar at ida.ing.tu-bs.de  2003-09-05 15:26 -------
Subject: kdevelop/parts/javasupport

CVS commit by aclu: 

Java parser spends a lot of cpu cycles trying to parse non-java source files. I noticed that if I try to edit a non java file, while a java project is open, gideon starts to eat cpu cycles.
This is a ugly hack to solve it.

Patch by: ( gp AT iws.it)
CCMAIL: roberto at kdevelop.org
CCMAIL: 61317-done at bugs.kde.org


  M +6 -1      problemreporter.cpp   1.13


--- kdevelop/parts/javasupport/problemreporter.cpp  #1.12:1.13
@@ -181,9 +181,14 @@ void ProblemReporter::reparse()
         return;
 
+    // @todo: use the project database to decide which files to parse instead of this!
+    // ugly hack: do not parse non .java ending files
+    if ( !m_fileName.endsWith(".java") )
+        return;
+
     m_timer->stop();
 
     kdDebug(9013) << "ProblemReporter::reparse()" << endl;
     m_javaSupport->backgroundParser()->addFile( m_fileName );
-    kdDebug(9013) << "---> file added" << endl;
+    kdDebug(9013) << "---> file added " << m_fileName << endl;
 }




More information about the KDevelop-devel mailing list