Re: [pacman-dev] [PATCH 4/4] pacman: speed up deptest

2019-10-06 Thread Allan McRae
On 9/9/19 7:45 am, morganamilo wrote: > Try and find an exact match via pkgcache before iterating the entire > localdb. > > Gives a noticeable speed up for exact matches e.g. `pacman -T zlib` > Thanks. Applied. > --- > > Do note this fails for versioned exact matches. "zlib>1" will not take >

[pacman-dev] [PATCH 4/4] pacman: speed up deptest

2019-09-08 Thread morganamilo
Try and find an exact match via pkgcache before iterating the entire localdb. Gives a noticeable speed up for exact matches e.g. `pacman -T zlib` --- Do note this fails for versioned exact matches. "zlib>1" will not take the faster route because alpm_db_get_pkgfromcache() does not work for versi