From 7548697a6b5e2a0268f149c296b74a750ad917d6 Mon Sep 17 00:00:00 2001 From: Dongxiao Xu Date: Wed, 14 Mar 2012 10:53:42 +0800 Subject: Hob: improve recipe/package selection performance Originally we will send selection chagned notification in each include_item and exclude_item, which is time cost since these are recursive functions and we may select hundreds of recipes/packages. The improvement is to move the notification from include_item and exclude_item to the place where the two functions are called. This could greatly improve the selection/deselection speed for recipe and package lists. (Bitbake rev: 5ad7c54f4b8739b9ae097c68978093a53f950ed7) Signed-off-by: Dongxiao Xu Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/recipeselectionpage.py | 1 + 1 file changed, 1 insertion(+) (limited to 'bitbake/lib/bb/ui/crumbs/recipeselectionpage.py') diff --git a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py index 234734c552..50d43637cd 100755 --- a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py +++ b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py @@ -202,6 +202,7 @@ class RecipeSelectionPage (HobPage): else: self.recipe_model.exclude_item(item_path=path) + self.refresh_selection() self.builder.window_sensitive(True) def table_toggled_cb(self, table, cell, view_path, toggled_columnid, view_tree): -- cgit v1.2.3-54-g00ecf