[pacman-dev] Tar backend for local db

Allan McRae allan at archlinux.org
Thu Nov 1 09:40:53 EDT 2012


On 01/11/12 23:27, keenerd wrote:
> On 11/1/12, Allan McRae <allan at archlinux.org> wrote:
>> # echo 3 > /proc/sys/vm/drop_caches
>> # time pacman -Qi pacman-git
>> ...
>> real	0m13.242s
>>
>> From experience with the tar backend for sync databases, this would
>> decrease by at least 10 seconds.
> 
>>From my experience writing non-libalpm pacman clients, you could
> reduce that by 13 seconds if you lazily loaded the local DB.  There is
> no reason to walk and parse the data of hundreds of packages when the
> user is explicitly asking for one.

Sure...  if it was a -Ql operation it would be much faster.   -Qi needs
to read the desc file for all installed packages (for "Required by"
calculation).

Allan



More information about the pacman-dev mailing list