<br><br><div class="gmail_quote">On Fri, Mar 9, 2012 at 1:39 AM, Ignacio Serantes <span dir="ltr"><<a href="mailto:kde@aynoa.net">kde@aynoa.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<div><br></div><div>Just installed KDE 4.8.1 I found a severe performance issue with my plasmoid Drop2TagIcon.</div><div><br></div><div>Some investigation reveals that the problem is the call to Nepomuk.Tag.allTags() and, as I have 5 Drop2TagIcon in each of my four activities, the final result is that Plasma was totally frozen.</div>


<div><br></div><div>Sadly this seems not restricted to Python, in irc Jörg Ehrichs has similar issues with Conquirere and a few minutes ago, when I'm trying to tag files using Dolphin in the old fashion way, I discover that the problem is here too.up</div>
</blockquote><div><br>Yup. Nepomuk::Tag::allTags() is synchronous, and ideally, shouldn't be used.<br><br>I've noticed the performance impact as well.<br><br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


<div><br></div><div>More information:</div><div>- I have only 144 tags.</div><div>- Over 7-8 seconds passed between I click in Dolphin "Add Tags..." and the dialog is displayed. </div><div>- Meanwhile over 33% of my dual core CPU is used by the nepomukservicestub that launches virtuoso.</div>


<div>- The next query:</div><div><br></div><div>SELECT ?uri ?label</div><div>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">WHERE {</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">  ?uri rdf:type nao:Tag .</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">  OPTIONAL { ?uri nao:prefLabel ?label . } .</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">} ORDER BY ?label</p></div><div><br></div><div>took over 150-170 milliseconds using NepSak and consuming 6% for an instant.</div></blockquote><div>
<br>That seems decent. I was going to use the QueryLibrary, but maybe I could directly use sparql.<br> <br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div><br></div><font color="#888888">

<div>-- <br>Best wishes,<div>Ignacio</div><div><br></div><br>
</div>
</font><br>_______________________________________________<br>
Nepomuk mailing list<br>
<a href="mailto:Nepomuk@kde.org">Nepomuk@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/nepomuk" target="_blank">https://mail.kde.org/mailman/listinfo/nepomuk</a><br>
<br></blockquote></div><br>