[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: "dselect" replacement team

On Fri, 11 Apr 1997, Martin Schulze wrote:

> On Apr 11, Jason Gunthorpe wrote
> > > Much has to be done... I'm in the process of creating a list of them...
> > I'd be interested in this list when you get done..
> If no one stops me it'll be placed in the doc directory on our ftp
> server.
> Sure, a binary format would be faster.  But I don't think that it would
> be that fast that we should lose our ascii files.  Just believe the only
> file for debian which is not plain ascii is .deb.

That was why I was doing those timings, reading a text file ins't exactly
deadly slow. 
> All other files like debian/rules, debian/control, configuration files
> etc. etc. are plain ascii files.  I have a very strong feeling for 
> keeping them.

Of course, there are too many reasons to stick with simple parsed ascii.

> > Libdb might be a good idea to implement in a cache mode, ie have status.db
> > which is a mirror of status in libdb format, then if status is changed the
> > db is rebuilt.
> Hmm, I have a very simple idea.
> libdpkg looks for status and status.db.  If the latter exist and has the
> same date or newer it is taken, otherwise the plain ascii file is used
> and a new .db is generated.  What about this?

Exactly! Thats what I call a cache file.

I will take a look at libdb's docs right now I guess..


Reply to: