FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

LinkBack Thread Tools
Old 07-05-2008, 02:42 PM
Nagy Gabor
Default pacman -R speed-up (empty cache)


Around this -S reworking, I looked into "-R foo" code, and I noticed
that we search for foo group, THEN literal... This forces pacman to
read all desc files. Wow. pacman -R group is not a common task...
You may say, that I'm cheating, because we will need to check
dependencies which loads the localdb. But this task requires depends
files only.

I temporarily disabled this group removal stuff (pacman.static.new)
Let's test (in both case zip is installed):
# echo 3 > /proc/sys/vm/drop_caches && time pacman.static.new -R zip
real 0m7.697s
user 0m0.056s
sys 0m0.091s
# echo 3 > /proc/sys/vm/drop_caches && time pacman.static.old -R zip
real 0m11.822s
user 0m0.075s
sys 0m0.126s

Check what would happen, if -R wouldn't deal with groups at all (my
preferred -Rg group way; xyz is not installed):
# echo 3 > /proc/sys/vm/drop_caches && time pacman.static.new -R xyz
real 0m1.130s
user 0m0.009s
sys 0m0.011s
# echo 3 > /proc/sys/vm/drop_caches && time pacman.static.old -R xyz
real 0m7.275s
user 0m0.051s
sys 0m0.081s

pacman-dev mailing list

Thread Tools

All times are GMT. The time now is 04:45 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org