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

Re: [PATCH] sub directories for /var/lib/dpkg/info

On Fri, Apr 14, 2000 at 06:26:11PM -0600, Jason Gunthorpe wrote:
> On Fri, 14 Apr 2000, Ben Collins wrote:
> > code, which loops over readdir() in /var/lib/dpkg/info for every single
> > package you install. Now that's 2500+ loops * every package, when I
> > apt-get upgrade. Might not notice it much on this 270mhz ultrasparc, but I
> You know a better optimization would be to simply read everything once and
> use a per-package flag indicating which files are available and which are
> not.

That would require pre-knowledge of the file names and types. Given that
.config and .templates are not even recognized by dpkg as valid files (yet
it allows them just the same) as an example of how new things can pop up,
I don't think it is wise to assume control file names. The alternative is
to save into memory all of the strings needed for each of the files, but
we know that dpkg is a memory hog already...


/  Ben Collins  --  ...on that fantastic voyage...  --  Debian GNU/Linux   \
`  bcollins@debian.org  --  bcollins@openldap.org  --  bcollins@linux.com  '

Reply to: