* Sven LUTHER said: > On Thu, May 20, 1999 at 12:44:02AM +0200, Marek Habersack wrote: > > > > 1. you create a C library with all the dpkg functionality inside > > 2. you compile and link it as a shared library > > 3. you write several simple drivers to interface the user to that library > > 4. the .so is loaded only ONCE - that's what shared libraries are for > > > > But you still have to parse the database, because you load the library only > once don't mean that you will keep the database as is between two invocation > of > the front-end that uses the library. Sure it can be done, but it is not That's true. But it can be overcome by either using a database access daemon (wasteful) that all programs communicate with in order to access the database - it has the advantage that all the consistency checks are performed on one level - by the daemon and it's the daemon who serializes the database access. Second, the database itself could be optimized by using a different format (perhaps, as RPM does, a DB database?) to speed up searching it.
regards, marek
pgpa0696Ld8bo.pgp
Description: PGP signature