[gnome-software] trivial: Add a tiny optimisation when calculating the plugin deps



commit f25831e184182ce62e8a6bdc35160e5b9478df57
Author: Richard Hughes <richard hughsie com>
Date:   Sat Feb 1 20:35:57 2014 +0000

    trivial: Add a tiny optimisation when calculating the plugin deps

 src/gs-plugin-loader.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index 48ff609..55d9893 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -2570,7 +2570,7 @@ gs_plugin_loader_setup (GsPluginLoader *plugin_loader, GError **error)
                        plugin = g_ptr_array_index (plugin_loader->priv->plugins, i);
                        if (plugin->deps == NULL)
                                continue;
-                       for (j = 0; plugin->deps[j] != NULL; j++) {
+                       for (j = 0; plugin->deps[j] != NULL && !changes; j++) {
                                dep = gs_plugin_loader_find_plugin (plugin_loader,
                                                                    plugin->deps[j]);
                                if (dep == NULL) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]