On Tue, Jun 21, 2011 at 08:28:34AM +1000, Russell Dickenson <[email protected]> wrote: > I know there's another thread relating to the speed of pacman -Sy and > it prompted me to ask a question I've been meaning to ask for a long > time. If I do a "pacman-g2 -S" of a package which doesn't exist, the > result on my laptop is a lot of disk activity and almost exactly 2 > minutes later I get the response "error: could not add target > 'freddo': not found in sync db". Of course the timing of this > operation is dependent on a lot of factors, including the speed of my > laptop's hard drive which is generally slower than I would like. > Regardless I am left wondering why it takes so long to confirm that > the package quoted doesn't exist in the database.
Because in case it finds no such package, it tries to search in provides and descriptions, which is slow. My patch helps there as well: $ time pacman-g2 -Ss foobar real 1m28.914s $ time ../src/pacman-g2/pacman-g2 --config root/etc/pacman-g2.conf -r root -Ss foobar real 0m3.509s I plan to address Michel's comments over the weekend and provide an updated patch to get one step closer to something that can go into the repo.
pgpQi4rqq0R5K.pgp
Description: PGP signature
_______________________________________________ Frugalware-devel mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-devel
