diff options
author | Felix Yan <felixonmars@archlinux.org> | 2022-10-10 12:53:52 +0000 |
---|---|---|
committer | Levente Polyak <anthraxx@archlinux.org> | 2022-10-11 20:25:08 +0200 |
commit | 5d02c6df7f9cd3a2820149886e8a32e7d8e7a566 (patch) | |
tree | d7d8113d7322266e117a06ca2ac6f722dd74c13c /src/archrelease.in | |
parent | 20f89df4439c5b187314731eff2d0a0281ae1e2b (diff) | |
download | devtools-5d02c6df7f9cd3a2820149886e8a32e7d8e7a566.tar.xz |
common: improve performance of find_cached_package
find_cached_package was unnecessarily looping over all packages which
uses a lot of CPU and could be exceptionally slow when PKGDEST contains
a lot of packages.
Fix this by adding the target pkgname, pkgver and arch to the glob and
only process potential candidates.
Diffstat (limited to 'src/archrelease.in')
0 files changed, 0 insertions, 0 deletions