[packagekit] Questions for PK and future zypp backend development

Richard Hughes hughsient at gmail.com
Sun Jan 13 17:12:15 PST 2008


On Fri, 2008-01-11 at 15:30 +0000, Thomas Wood wrote:
> Cool. Out of interest, what's sort of timescale do you have in mind
> for the next release?

I've just finished the first cut of the new daemon, i.e. one that allows
you to keep a backend around for a longer time than one transaction. You
can't do anything yet that the old daemon couldn't do, although we can
now init and destroy once, not many times. This means we can keep state
(and processes) around for seconds or even minutes, and even do cool
stuff like talking to a persistent python dbus instance (more info will
follow tomorrow).

As the diff is pretty large, I'll filter this one into master slowly so
we can bisect to find regressions:

 backends/test/pk-backend-test-spawn.c  |   33 
 backends/test/pk-backend-test-thread.c |   10 
 src/Makefile.am                        |   10 
 src/pk-backend-internal.h              |   90 -
 src/pk-backend-python.c                |  194 +--
 src/pk-backend-spawn.c                 |  893 ++++++++++++++++
 src/pk-backend-spawn.h                 |   62 +
 src/pk-backend.c                       | 1759 +++------------------------------
 src/pk-backend.h                       |  112 --
 src/pk-engine.c                        |  865 ++++++----------
 src/pk-engine.h                        |    2 
 src/pk-main.c                          |   20 
 src/pk-runner.c                        | 1314 ++++++++++++++++++++++++
 src/pk-runner.h                        |  139 ++
 src/pk-self-test.c                     |   12 
 src/pk-thread-list.h                   |    1 
 src/pk-time.c                          |   29 
 src/pk-time.h                          |    1 
 src/pk-transaction-list.c              |   52 
 src/pk-transaction-list.h              |    9 
 20 files changed, 3221 insertions(+), 2386 deletions(-)

Anyway, this message is just to say that I'm on the case, and soon
PackageKit will be much quicker. In preliminary tests, PK /feels/ a
boat-load quicker, although I've got no numbers yet.

Sleep time - I have to be awake in a little over 5 hours.

Richard.





More information about the PackageKit mailing list