Package: aptitude Version: 0.4.11.11-1+b2 Severity: normal
Using aptitude to get information about packages is very slow, and can often take 3-5 seconds, for example the call: aptitude show python-twisted Compare this to apt-cache show python-twisted which is in practice instant here. 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? The major difference (or my perception thereof) between the output of the two programs is that Aptitude's output is Localized. -- Package-specific info: aptitude 0.4.11.11 compiled at Aug 3 2009 23:28:36 Compiler: g++ 4.3.3 Compiled against: apt version 4.8.0 NCurses version 5.7 libsigc++ version: 2.0.18 Ept support enabled. Current library versions: NCurses version: ncurses 5.7.20090803 cwidget version: 0.5.13 Apt version: 4.8.1 linux-vdso32.so.1 => (0x00100000) libapt-pkg-libc6.9-6.so.4.8 => /usr/lib/libapt-pkg-libc6.9-6.so.4.8 (0x0ff01000) libncursesw.so.5 => /lib/libncursesw.so.5 (0x0fe90000) libsigc-2.0.so.0 => /usr/lib/libsigc-2.0.so.0 (0x0fe69000) libcwidget.so.3 => /usr/lib/libcwidget.so.3 (0x0fd71000) libept.so.0 => /usr/lib/libept.so.0 (0x0fcca000) libxapian.so.15 => /usr/lib/libxapian.so.15 (0x0fb22000) libz.so.1 => /usr/lib/libz.so.1 (0x0faed000) libpthread.so.0 => /lib/libpthread.so.0 (0x0fab3000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x0f967000) libm.so.6 => /lib/libm.so.6 (0x0f89a000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0f85f000) libc.so.6 => /lib/libc.so.6 (0x0f6d5000) libutil.so.1 => /lib/libutil.so.1 (0x0f6b2000) libdl.so.2 => /lib/libdl.so.2 (0x0f68e000) /lib/ld.so.1 (0x48000000) Terminal: screen $DISPLAY is set. `which aptitude`: /usr/bin/aptitude aptitude version information: aptitude linkage: -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (990, 'testing'), (800, 'unstable') Architecture: powerpc (ppc) Kernel: Linux 2.6.31.2-ulrik Locale: LANG=sv_SE.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages aptitude depends on: ii apt [libapt-pkg-libc6. 0.7.23.1 Advanced front-end for dpkg ii libc6 2.9-25 GNU C Library: Shared libraries ii libcwidget3 0.5.13-1 high-level terminal interface libr ii libept0 0.5.29 High-level library for managing De ii libgcc1 1:4.4.1-4 GCC support library ii libncursesw5 5.7+20090803-2 shared libraries for terminal hand ii libsigc++-2.0-0c2a 2.0.18-2 type-safe Signal Framework for C++ ii libstdc++6 4.4.1-4 The GNU Standard C++ Library v3 ii libxapian15 1.0.16-3 Search engine library ii zlib1g 1:1.2.3.3.dfsg-15 compression library - runtime Versions of packages aptitude recommends: ii aptitude-doc-en [aptitude-do 0.4.11.11-1 English manual for aptitude, a ter ii libparse-debianchangelog-per 1.1.1-2 parse Debian changelogs and output Versions of packages aptitude suggests: ii debtags 1.7.9+b2 Enables support for package tags pn tasksel <none> (no description available) -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org