<div class="gmail_quote">On Wed, Oct 6, 2010 at 10:51 PM, Milian Wolff <span dir="ltr"><<a href="mailto:mail@milianw.de">mail@milianw.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hey all,<br>
<br>
since I spent some time today to investigate the excessive wakeups of KDevelop<br>
while it's supposedly doing *nothing* I got a suggestion by pinotree in<br>
#kde-devel:<br>
<br>
He proposed to use QT_NO_GLIB for KDevelop. Indeed that removes most calls to<br>
poll() when comparing a strace -tt -p $(pidof kdevelop).<br>
<br>
See e.g. here how to implement:<br>
<br>
<a href="http://websvn.kde.org/trunk/KDE/kdebase/workspace/kwin/main.cpp?revision=1177865&view=markup" target="_blank">http://websvn.kde.org/trunk/KDE/kdebase/workspace/kwin/main.cpp?revision=1177865&view=markup</a><br>

search for QT_NO_GLIB.<br>
<br>
It's very easy and for kwin it also fixed high CPU usage bugs. Didn't we have<br>
some like these as well?<br>
<br>
Anyhow, the draw back would be: It's not possible to use gstreamer or phonon<br>
in KDevelop anymore as these require that glib eventloop. I personally don't<br>
see a reason (now) for using phonon in KDevelop. In the far future one might<br>
want to play screencasts or other media in embedded documentation...<br>
<br>
So what do you guys think: Should we try it out? Or leave it as-is?<br>
<br>
Bye<br>
<font color="#888888">--<br>
Milian Wolff<br>
<a href="mailto:mail@milianw.de">mail@milianw.de</a><br>
<a href="http://milianw.de" target="_blank">http://milianw.de</a><br>
</font><br>--<br>
KDevelop-devel mailing list<br>
<a href="mailto:KDevelop-devel@kdevelop.org">KDevelop-devel@kdevelop.org</a><br>
<a href="https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel" target="_blank">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel</a><br>
<br></blockquote></div><br><div>As I said on the IRC I wouldn't be against it but I'd like to make it sure that we _need_ that to work properly. Isn't there a reason for these poll calls for instance? If you open a small app and leave it open it doesn't take CPU constantly, at least...</div>
<div><br></div><div>Aleix</div>