On Wed, Oct 28, 2009 at 07:42:05PM +0100, Ulrik Sverdrup <ulrik.sverd...@gmail.com> was heard to say: > Stracing the two commands it's obvious that they differ in the amount of > wor they do. Among other things, aptitude seems to read the whole of the > file > '/var/lib/apt/lists/ftp.ch.debian.org_debian_dists_squeeze_main_binary-powerpc_Packages' > linearly. In the strace output of aptitude, it simply opens the file, > seeks to some position and reads what it wants. > > Is there a fundamental reason aptitude can't do that?
I don't think that there is a fundamental reason that aptitude needs to read the whole Packages list for "show". It's just a lot simpler code-wise to initialize the whole "standard" aptitude back-end than to try to suppress the parts that don't need to happen in order for "show" to work. Daniel -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org