[pacman-dev] patch] My speed improvement

Jürgen Hötzel juergen at hoetzel.info
Sat Mar 10 04:09:34 EST 2007


so this is a index for groupnames implemented by symlinks. How do you
ensure the index is up2date? 

This is only performant because there are few groupnames. How do you 
want to index pkg names? You will get more files. File-io is already the
performance limiting part of of the current backend.


On Fri, Mar 09, 2007 at 12:32:51AM +0100, Nagy Gabor wrote:
> Hi!
> This is in very early stage, just a proof of concept. Just for
> testing only (not merging to cvs). If you want to test it, after
> compiling, run 'pacman --repair' <- this creates the extra infos for
> the local db. Now .groups implemented only, so speedup will be seen
> with -Qg or similar. Fully compatible with the old db; it checks
> whether the speedup dotdir exists (if the answer is yes, it uses it).
> There is no option in "my" pacman to create speedup dirs for sync repos
> (because it should be downloaded in db.tar.gz), but if you want to play
> with it for testing, rename the repo to local and run 'pacman --repair'
> and rename back...
> Bye, Nagy Gabor
> My first test results: (after sync; echo 3 > /proc/sys/vm/drop_caches;)
> Old:
> real	0m4.522s
> user	0m0.029s
> sys	0m0.060s
> New:
> real	0m0.788s
> user	0m0.002s
> sys	0m0.012s
> _______________________________________________
> pacman-dev mailing list
> pacman-dev at archlinux.org
> http://www.archlinux.org/mailman/listinfo/pacman-dev

More information about the pacman-dev mailing list