~zeitgeist/zeitgeist/zeitgeist-0.7.0

Viewing all changes in revision 1658.

  • Committer: Siegfried-Angel Gevatter Pujals
  • Date: 2011-01-13 14:41:27 UTC
  • mfrom: (1656.1.4 bug695311)
  • Revision ID: rainct@ubuntu.com-20110113144127-c2xwfoazn9p3akew
Reduce DataSourceRegistry's accesses to disk, clean it up a bit, add
a way for extensions to (attempt to) run some code before Zeitgeist
ends.

 - DataSourceRegistry: Don't write the timestamp update to disk every
   time we see a data-source, this is unimportant information and it
   produces a significant slow-down (LP: #695311).

 - Add an unload() method to extensions which gets called when
   Zeitgeist shuts down.

 - Handle SIGTERM and KeyboardInterrupt cleanly, in addition to SIGHUP.

 - DataSourceRegistry: Change ._registry from list to dict. This
   doesn't really make a difference, but simplifies the code a little
   bit and just feels nicer.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: