On Sun, May 21, 2000 at 11:38:18AM +0200, Josip Rodin wrote:
> On Sat, May 20, 2000 at 07:37:59PM -0800, Ethan Benson wrote:
> > > Apt uses a mixed approach: it uses the same textfiles as dpkg but
> > > uses a binary cache to also get the advantages of a binary database.
> > 
> > it does?  where?
> 
> See /var/cache/apt/*.bin files.
>
> An example why is that good is the speed of `apt-cache show foo'
> compared to non-speed of `dpkg -p foo'. (of course, there are faster
> things to browse the textual database, they just aren't in dpkg
> itself)

dlocate and grep-dctrl for example.

interestingly, 'apt-cache show' is even faster than dlocate (which makes
use of grep-dctrl to do the search).

$ time apt-cache show dpkg >/dev/null
real    0m0.235s
user    0m0.210s
sys     0m0.030s

$ time dlocate -s dpkg>/dev/null
real    0m0.407s
user    0m0.380s
sys     0m0.010s

$ time dpkg -s dpkg>/dev/null
real    0m1.517s
user    0m1.410s
sys     0m0.100s

craig

--
craig sanders

Reply via email to