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

Re: dpkg v2 ? I haven't heard about it, but ...



Adam Heath <doogie@debian.org> wrote:
> *.list handling is way inefficient.  It is faster for me to grep the .list
> files, then for me to do dpkg -S.  And that is on a celeron 300/256m.

I agree that this is an issue.

I frequently find that I can do dpkg -S
*then* start up another window and manually type out a similar
line involving grep /var/lib/dpkg/info/*.list

and have the grep complete before the dpkg -S completes.

The machine I'm using at the moment is too fast for this, but the
difference is still signficant (~20x):

$ time grep dselect /var/lib/dpkg/info/*.list
/var/lib/dpkg/info/dpkg.list:/usr/bin/dselect
/var/lib/dpkg/info/dpkg.list:/usr/man/man8/dselect.8.gz
real    0m0.059s
user    0m0.010s
sys     0m0.040s
$ time dpkg -S dselect
dpkg: /usr/bin/dselect
dpkg: /usr/man/man8/dselect.8.gz
real    0m1.262s
user    0m1.090s
sys     0m0.100s
$ 


-- 
Raul


Reply to: