[Frugalware-devel] Pacman speed improvement

VMiklos vmiklos at frugalware.org
Sat Feb 3 21:36:41 CET 2007


On Tue, Jan 23, 2007 at 01:53:29AM +0100, VMiklos <vmiklos at frugalware.org> wrote:
> we could use something like _alpm_pkg_getinfo() for such purpose. i'm
> not sure if i'll have time, but in case yes then i plan to work on this
> 
> we could archieve an extremely big speedup ie. when using pacman -Si foo

i've just pushed 8 patches to the pacman-g2 repo which implements this.

2 sample:

1) loading only what is really needed (pacman-2 -Qi pacman-g2):

[21:33:02] debug: loading package cache (infolevel=0) for repository 'local'
Name           : pacman-g2
Version        : 3.4.6-1
[21:33:05] debug: loading DESC info for 'pacman-g2'
Groups         : base chroot-core
Packager       : Frugalware Linux (http://frugalware.org)
URL            : http://ftp.frugalware.org/pub/other/pacman-g2/
License        : None
Architecture   : i686
Size           : 2385901
Build Date     : Tue Dec 19 16:14:44 2006 UTC
Build Type     : chroot
Install Date   : Tue Dec 26 12:17:16 2006 UTC
[21:33:05] debug: loading SCRIPLET info for 'pacman-g2'
Install Script : No
Reason         : Explicitly installed
[21:33:05] debug: loading DEPENDS info for 'pacman-g2'
Provides       : pacman
Depends On     : libarchive>=1.3.1
Removes        : None
Required By    : frugalpkg pacman-tools frugalwareutils
Conflicts With : pacman
Description    : A .tar.bz2 based package manager with dependency support

2) a simple benchmark using sync; echo 3 > /proc/sys/vm/drop_caches; time pacman-g2 -Si zgv:

old:
real    0m10.341s

new:
real    0m2.841s

udv / greetings,
VMiklos

-- 
Developer of Frugalware Linux, to make things frugal - http://frugalware.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : /pipermail/attachments/20070203/ad930626/attachment.bin


More information about the Frugalware-devel mailing list