kdevelop/parts/outputviews

falk.brettschneider at gmx.de falk.brettschneider at gmx.de
Thu Mar 27 15:35:05 UTC 2003


> > 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 at lk

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





More information about the KDevelop-devel mailing list