switching views is excruciately slow

Manuel Massing m.massing at warped-space.de
Wed Apr 6 07:31:43 UTC 2011


Hi,

I am working on a medium-size codebase (about 300.000 loc), and 
unfortunately the switch between "Debug" and "Code" views
is really slow with such a project - it takes about 20-30 seconds,
during which the UI completely freezes!

This makes the debug mode nearly unusable. Of note here is that
almost all of this time is spent installing event filters. My
dirty work-around was to comment the following lines out, without
apparent ill effects:

--- a/sublime/mainwindow_p.cpp
+++ b/sublime/mainwindow_p.cpp
@@ -253,8 +253,8 @@ Area::WalkerMode 
MainWindowPrivate::ViewCreator::operator() (AreaIndex *index)
             if (widget && !container->hasWidget(widget))
             {
                 widget->installEventFilter(d);
-                foreach (QWidget* w, widget->findChildren<QWidget*>())
-                    w->installEventFilter(d);
                 container->addWidget(view, position);
                 d->viewContainers[view] = container;
                 d->widgetToView[widget] = view;



Can someone with knowledege of the code explain the purpose of these event
filters? Do you see a way to fix this, e.g. make it into an "opt-in scheme"? 

thanks,

	Manuel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20110406/f95683f6/attachment.html>


More information about the KDevelop-devel mailing list