Revision a398d44...
Go back to digest for 3rd February 2013Optimization in KDE Base
Vishesh Handa committed changes in [nepomuk-core/KDE/4.10] /:
Resource: Do not auto update the cache by default
The resource class generally connects to the ResourceWatcher, and
updates itself whenever any other application changes any data. While,
this may be desirable at times, most of the times, it is not required.
1. It creates a massive number of watches which increase the number of
messages that are sent across dbus.
2. It slows down the Resource class because its own changes are also
propogated back to it.
3. It doesn't really notify anyone that the data has been changed, so
the ui code doesn't know when it is supposed to refresh.
Added a function setWatchEnabled( bool ), which configures if the
Resource should be auto-updated.
File Changes
Modified 5 files
- autotests/test/resourcetests.cpp
- libnepomukcore/resource/resource.cpp
- libnepomukcore/resource/resource.h
- libnepomukcore/resource/resourcedata.cpp
- libnepomukcore/resource/resourcedata.h
5 files changed in total