diff options
author | Richard Hughes <richard@hughsie.com> | 2016-11-02 15:05:26 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2016-11-02 15:05:26 +0000 |
commit | 8bfba559004253aeabcf9a26f4edd7cccbe70770 (patch) | |
tree | fcd7a5534b0245c88010da9b8d19e80c480b1447 /client | |
parent | 927d4d3856b914511f5a52114c583c5d35c643f4 (diff) | |
download | appstream-glib-8bfba559004253aeabcf9a26f4edd7cccbe70770.tar.gz |
Add as_store_load_search_cache()
This is really only useful for profiling startup speed.
Diffstat (limited to 'client')
-rw-r--r-- | client/as-util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/client/as-util.c b/client/as-util.c index 4be1f1d..dee4934 100644 --- a/client/as-util.c +++ b/client/as-util.c @@ -1301,6 +1301,9 @@ as_util_search (AsUtilPrivate *priv, gchar **values, GError **error) NULL, error)) return FALSE; + /* prime the search cache */ + as_store_load_search_cache (store); + /* add matches to an array */ apps = as_store_get_apps (store); array = g_ptr_array_new_with_free_func ((GDestroyNotify) g_object_unref); |