xbps-query: optimize the search mode with --regex (compile ERE once).

This commit is contained in:
Juan RP
2015-01-14 20:53:01 +01:00
parent 8263449f94
commit 676888b5c1
2 changed files with 13 additions and 20 deletions

2
NEWS
View File

@@ -23,7 +23,7 @@ xbps-0.44 (???):
and its dependencies) and `xbps-remove -o` (remove orphaned pkgs) marginally.
* xbps-query(8): only compile the ERE (Extended Regular Expression) once in
the ownedby mode. A performance improvement suggested by Christian Neukirchen.
the ownedby and search modes. A performance improvement suggested by Christian Neukirchen.
* libxbps: performance improvement for xbps_repo_get_pkg_revdeps(): when finding
the matching pkg, search for it in the current repository, not in the repository