[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-devel
Subject:    Re: kdevelop/parts/outputviews
From:       falk.brettschneider () gmx ! de
Date:       2003-03-27 14:33:37
[Download RAW message or body]

> > The output filtering is quite slow. This change will speed up one part
> of
> > the filtering (when searching for line breaks in the output), and it
> will
> > speed up quite a well. The time spend to analyze the ouput is reduced by
> a
> > factor of 2. This makes Gideon usable (but not fast) on my system, but
> on
> > slower systems it may still take up too much resources. The next problem
> is
> > in the MakeActionFilter::processLine. The regexp matching in the for
> cycle
> > is VERY slow. Enable the debug area for 9004 and watch the output for
> "SLOW
> > regexp matching". Also the other processLine methods in other filters
> > should be reviewed and if it's the case rewritten.
> 
> I guess that making the QRegExps static would be a good thing to do where 
> there are still regexps left. The thing is that if you're using a regexp
> on 
> every line, instantiated in a per-line called function, the QRegExp's 
> constructor has a cache lookup that thus gets invoked for every line. This
> is 
> just a waste of time. Static QRegExps solve that. It may not be a major
> time 
> consumer, but why waste time anyway.
Even better is to call the constructor only one time, this is in the
constructor of the MakeView class. Then just use object via its pointer.

Ciao
F@lk

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!


_______________________________________________
Kdevelop-devel mailing list
Kdevelop-devel@barney.cs.uni-potsdam.de
http://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic