[Frugalware-devel] Question about speed of pacman-g2 -S <package> for a non-existent package

Russell Dickenson russelldickenson at gmail.com
Wed Jun 22 00:29:38 CEST 2011

On 22 June 2011 08:26, Miklos Vajna <vmiklos at frugalware.org> wrote:
> On Tue, Jun 21, 2011 at 08:28:34AM +1000, Russell Dickenson <russelldickenson at gmail.com> 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.

Wow! Those results are just amazing.

I look forward to a faster Frugalware. :)

May you always be Frugal,

Russell Dickenson (AKA phayz)

More information about the Frugalware-devel mailing list