[Nepomuk] Nepomuk::ResourceWatcher: Performance issues

Peter Penz peter.penz19 at gmail.com
Sat Apr 14 20:21:27 UTC 2012


On 04/14/2012 10:02 PM, Sebastian Trüg wrote:
> On 04/06/2012 02:48 PM, Peter Penz wrote:
[...]
>> - Invoking ResourceWatcher::addResource() after invoking
>> ResourceWatcher::start() has no effect. As workaround before adding a
>> resource I needed to invoke ResourceWatcher::stop(), add the resource
>> and invoke ResourceWatcher::start() again. The problem with this
>> workaround is the performance: Calling stop() clears e.g. 15000 items
>> and calling start() after adding one resource adds 15001 items again. In
>> the case of the directory with 20000 this might take up a few seconds
>> for each (!) of the items in the upper-range.
>
> I implemented support for that a while ago. Where did you copy the RW from?

Sounds good ;-) I've copied it from the KDE/4.8 branch due to the 
kdelibs-freeze - I did not check the other branches, but probably you 
pushed it to the frameworks branch?


More information about the Nepomuk mailing list