diff options
author | Marco Diego Aurélio Mesquita <marcodiegomesquita@gmail.com> | 2016-10-12 12:08:40 -0300 |
---|---|---|
committer | Dan Nicholson <dbn.lists@gmail.com> | 2016-12-22 13:29:12 -0600 |
commit | c53385b5dbd25844faa89b1c8297d61ab05ed6ef (patch) | |
tree | b487896fa2a3978d8be840da16915cd1610a2f6e /pkg.h | |
parent | a38d5c58a177c6cf274d6f1607f64ef360b6966d (diff) | |
download | pkg-config-c53385b5dbd25844faa89b1c8297d61ab05ed6ef.tar.gz |
Optimization to load only needed .pc files
Currently pkg-config scans all .pc files from the search path during
initialization. That makes some of the code simpler and works fine when
there are not many .pc files on the system. When there are a lot of .pc
files, then this represents a lot of wasted effort.
Rework the package gathering so that it happens as needed. To support
the --list-all mode, the scanning at initialization can still be done.
https://bugs.freedesktop.org/show_bug.cgi?id=98215
Diffstat (limited to 'pkg.h')
-rw-r--r-- | pkg.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -98,7 +98,7 @@ char * packages_get_var (GList *pkgs, void add_search_dir (const char *path); void add_search_dirs (const char *path, const char *separator); -void package_init (void); +void package_init (gboolean want_list); int compare_versions (const char * a, const char *b); gboolean version_test (ComparisonType comparison, const char *a, |