[gnome-software/wip/hughsie/fwupd: 18/21] Only load the firmware components when getting hardware updates
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/hughsie/fwupd: 18/21] Only load the firmware components when getting hardware updates
- Date: Wed, 11 Mar 2015 19:50:33 +0000 (UTC)
commit ce98f12645d564cac1686fb5013c153b0bf2c39c
Author: Richard Hughes <richard hughsie com>
Date: Wed Mar 11 13:23:15 2015 +0000
Only load the firmware components when getting hardware updates
This means we load the data in ~100ms, rather than nearly 2s...
src/plugins/gs-plugin-fwupd.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-fwupd.c b/src/plugins/gs-plugin-fwupd.c
index 462b382..ccce30c 100644
--- a/src/plugins/gs-plugin-fwupd.c
+++ b/src/plugins/gs-plugin-fwupd.c
@@ -146,7 +146,8 @@ gs_plugin_startup (GsPlugin *plugin, GCancellable *cancellable, GError **error)
return FALSE;
}
- /* this is hugely wasteful */
+ /* only load firmware from the system */
+ as_store_add_filter (plugin->priv->store, AS_ID_KIND_FIRMWARE);
if (!as_store_load (plugin->priv->store,
AS_STORE_LOAD_FLAG_APP_INFO_SYSTEM,
cancellable, error))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]