On 01/11/12 23:27, keenerd wrote: > On 11/1/12, Allan McRae <[email protected]> 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
