Revision 07724eb...
Go back to digest for 2nd March 2014Optimization in KDE-PIM
Dan Vratil committed changes in [akonadi] /:
Use scheduling in CacheCleaner and IntervalCheck
Instead of repeatadly querying all collections and checking, whether
collection should be synchronized or cleared, we query all collections
only on start and then we just set a QTimer to timeout when a nearest
collection should expire.
This should decrease disk wakeups, especially in IntervalCheck, because
is does only little SQL now, while before it was checking all collections
every minute or so.
New collections or changes in collection cache policies are delivered to
CacheCleaner and IntervalCheck from NotificationCollector.
File Changes
Added 2 files
- /src
- server/collectionscheduler.cpp
- server/collectionscheduler.h
Modified 6 files
- server/CMakeLists.txt
- server/src/cachecleaner.cpp
- server/src/cachecleaner.h
- server/src/intervalcheck.cpp
- server/src/intervalcheck.h
- server/src/storage/notificationcollector.cpp
8 files changed in total