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

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

No files matched your search

+1 -1
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