summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2013-08-05 15:22:11 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-06 13:02:27 +0100
commit44db452d8ffcbb46bcaee8cc379b4a27b3ca6849 (patch)
tree41d3d34c54002439387087aede6f0396723aceab /bitbake
parent3412a89dfdb8c07e4745ab04f6420202c3c965b4 (diff)
downloadast2050-yocto-poky-44db452d8ffcbb46bcaee8cc379b4a27b3ca6849.zip
ast2050-yocto-poky-44db452d8ffcbb46bcaee8cc379b4a27b3ca6849.tar.gz
bitbake: depexp: insert data instead of append/set, for speed
(Bitbake rev: 9f50a841f4929e68333ccf2ace32f5d3ca1e7d0d) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/ui/depexp.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/bitbake/lib/bb/ui/depexp.py b/bitbake/lib/bb/ui/depexp.py
index b7e6f8f..03ed823 100644
--- a/bitbake/lib/bb/ui/depexp.py
+++ b/bitbake/lib/bb/ui/depexp.py
@@ -165,21 +165,15 @@ class DepExplorer(gtk.Window):
def parse(self, depgraph):
for package in depgraph["pn"]:
- self.pkg_model.set(self.pkg_model.append(), COL_PKG_NAME, package)
+ self.pkg_model.insert(0, (package,))
for package in depgraph["depends"]:
for depend in depgraph["depends"][package]:
- self.depends_model.set (self.depends_model.append(),
- COL_DEP_TYPE, TYPE_DEP,
- COL_DEP_PARENT, package,
- COL_DEP_PACKAGE, depend)
+ self.depends_model.insert (0, (TYPE_DEP, package, depend))
for package in depgraph["rdepends-pn"]:
for rdepend in depgraph["rdepends-pn"][package]:
- self.depends_model.set (self.depends_model.append(),
- COL_DEP_TYPE, TYPE_RDEP,
- COL_DEP_PARENT, package,
- COL_DEP_PACKAGE, rdepend)
+ self.depends_model.insert (0, (TYPE_RDEP, package, rdepend))
class gtkthread(threading.Thread):
OpenPOWER on IntegriCloud