diff options
author | Dongxiao Xu <dongxiao.xu@intel.com> | 2012-03-14 10:53:42 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-15 10:35:17 +0000 |
commit | 7548697a6b5e2a0268f149c296b74a750ad917d6 (patch) | |
tree | edf1acb7014a81ac0f5c7dd124dd32d92dab475e /bitbake/lib/bb/ui/crumbs/packageselectionpage.py | |
parent | ea8a7a82da8fa1fa3ff89877fa31dad33407d734 (diff) | |
download | poky-7548697a6b5e2a0268f149c296b74a750ad917d6.tar.gz |
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 <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/packageselectionpage.py')
-rwxr-xr-x | bitbake/lib/bb/ui/crumbs/packageselectionpage.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py index 0427fe2f6d..4fb199e521 100755 --- a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py +++ b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py | |||
@@ -206,6 +206,7 @@ class PackageSelectionPage (HobPage): | |||
206 | else: | 206 | else: |
207 | self.package_model.exclude_item(item_path=path) | 207 | self.package_model.exclude_item(item_path=path) |
208 | 208 | ||
209 | self.refresh_selection() | ||
209 | self.builder.window_sensitive(True) | 210 | self.builder.window_sensitive(True) |
210 | 211 | ||
211 | def table_toggled_cb(self, table, cell, view_path, toggled_columnid, view_tree): | 212 | def table_toggled_cb(self, table, cell, view_path, toggled_columnid, view_tree): |