kdevelop/parts/outputviews
Kuba Ober
kuba at mareimbrium.org
Thu Mar 27 14:41:02 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.
Cheers, Kuba Ober
More information about the KDevelop-devel
mailing list