OutputModel performance

Aleix Pol aleixpol at kde.org
Wed Feb 6 16:11:02 UTC 2013


On Wed, Feb 6, 2013 at 4:59 PM, Kevin Funk <krf at gmx.de> wrote:

> On Wednesday 06 February 2013, 17:32, Alexander Shaduri wrote:
> > Hello,
> >
> > On Wed, 06 Feb 2013 13:25:17 +0100
> >
> > Kevin Funk wrote:
> > > I recently noticed that I get serious UI lockups when running a 'make
> > > install' job inside KDevelop for larger projects such as kdelibs. 'make
> > > install' here may produce roughly ~4500 lines of output in just a few
> > > seconds.
> > > ...
> > > So, the question here:
> > > - Did anyone of you guys experience similar issues just to begin with?
> >
> > Just from the user's point of view:
> > KDevelop is essentially unusable when I'm compiling my project (9
> parallel
> > make jobs). It seems that the outputview just cannot handle it quickly
> > enough.
> >
> > It's a typical cmake/Qt project compiled with make -j9, the full
> compilation
> > takes about 30 seconds and produces ~500KB output (~2300 lines).
> > CMAKE_VERBOSE_MAKEFILE is on.
> >
> > If I set make jobs to 1 or CMAKE_VERBOSE_MAKEFILE to off, it's all fine.
> >
> > I'd be grateful if you added this as a test case. Compiling, say,
> KDevelop
> > with the same settings should give you the same drop in performance.
> >
> > Thanks,
> > Alexander
>
> Just for the record -- I just measured the time it takes to complete
> addLineBatch():
>
> (...)
> KDevelop::OutputModel::addLineBatch: elapsed time:  20 ms, processed
> lines: 1
> KDevelop::OutputModel::addLineBatch: elapsed time:  10 ms, processed
> lines: 1
> KDevelop::OutputModel::addLineBatch: elapsed time:  22 ms, processed
> lines: 2
> KDevelop::OutputModel::addLineBatch: elapsed time:  8 ms, processed lines:
> 1
> KDevelop::OutputModel::addLineBatch: elapsed time:  8 ms, processed lines:
> 2
> KDevelop::OutputModel::addLineBatch: elapsed time:  7 ms, processed lines:
> 1
> KDevelop::OutputModel::addLineBatch: elapsed time:  7 ms, processed lines:
> 1
> KDevelop::OutputModel::addLineBatch: elapsed time:  12 ms, processed
> lines: 3
> KDevelop::OutputModel::addLineBatch: elapsed time:  9 ms, processed lines:
> 2
> KDevelop::OutputModel::addLineBatch: elapsed time:  7 ms, processed lines:
> 1
> KDevelop::OutputModel::addLineBatch: elapsed time:  8 ms, processed lines:
> 1
> KDevelop::OutputModel::addLineBatch: elapsed time:  11 ms, processed
> lines: 4
> KDevelop::OutputModel::addLineBatch: elapsed time:  7 ms, processed lines:
> 1
> KDevelop::OutputModel::addLineBatch: elapsed time:  7 ms, processed lines:
> 1
> (...)
>
> IMO that clearly shows that this takes way too much processing time / line.
>
> Maybe Morten has an idea how to improve this? I won't have time before next
> week to work on this.
>
> Greets
>
> --
> Kevin Funk
> _______________________________________________
> KDevelop-devel mailing list
> KDevelop-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kdevelop-devel
>

Well, I'd say we should figure out if there's a way to see what is the
problematic regexp... no? It's running a bunch of them every time...

Aleix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20130206/918e2cbb/attachment.html>


More information about the KDevelop-devel mailing list