Revision 1208523

Go back to digest for 26th December 2010

Features in KDE Base

Friedrich Karl Tilman Pülz committed changes in /trunk/playground/base/plasma/dataengines/publictransport:

- Lazy script loading: Scripts are now read and executed only when needed. Their features are stored in a file (data_cache). This speeds up the start of the data engine (if there's an up-to-date data_cache). The cache is updated if the "last modified" time of a script file has changed. Previously on startup every script was executed to get it's features.

- When multiple files in the accessor data directory are changed at once, the accessors are now reloaded only once (or maximally every 250ms). Previously the data engine could freeze plasma for a while, eg. if it's re-installed (that resulted in a running data engine to reload all accessors for every reinstalled accessor XML- and JS-file).

File Changes

Modified 5 files
  • /trunk/playground/base/plasma/dataengines/publictransport
  •   /accessorinfoxmlreader.cpp
  •   /publictransportdataengine.cpp
  •   /publictransportdataengine.h
  •   /timetableaccessor_html_script.cpp
  •   /timetableaccessor_html_script.h
5 files changed in total