diff options
author | Ross Burton <ross.burton@intel.com> | 2013-08-05 15:22:11 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-06 13:02:27 +0100 |
commit | 44db452d8ffcbb46bcaee8cc379b4a27b3ca6849 (patch) | |
tree | 41d3d34c54002439387087aede6f0396723aceab /bitbake | |
parent | 3412a89dfdb8c07e4745ab04f6420202c3c965b4 (diff) | |
download | 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.py | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/bitbake/lib/bb/ui/depexp.py b/bitbake/lib/bb/ui/depexp.py index b7e6f8f1c3..03ed823261 100644 --- a/bitbake/lib/bb/ui/depexp.py +++ b/bitbake/lib/bb/ui/depexp.py | |||
@@ -165,21 +165,15 @@ class DepExplorer(gtk.Window): | |||
165 | 165 | ||
166 | def parse(self, depgraph): | 166 | def parse(self, depgraph): |
167 | for package in depgraph["pn"]: | 167 | for package in depgraph["pn"]: |
168 | self.pkg_model.set(self.pkg_model.append(), COL_PKG_NAME, package) | 168 | self.pkg_model.insert(0, (package,)) |
169 | 169 | ||
170 | for package in depgraph["depends"]: | 170 | for package in depgraph["depends"]: |
171 | for depend in depgraph["depends"][package]: | 171 | for depend in depgraph["depends"][package]: |
172 | self.depends_model.set (self.depends_model.append(), | 172 | self.depends_model.insert (0, (TYPE_DEP, package, depend)) |
173 | COL_DEP_TYPE, TYPE_DEP, | ||
174 | COL_DEP_PARENT, package, | ||
175 | COL_DEP_PACKAGE, depend) | ||
176 | 173 | ||
177 | for package in depgraph["rdepends-pn"]: | 174 | for package in depgraph["rdepends-pn"]: |
178 | for rdepend in depgraph["rdepends-pn"][package]: | 175 | for rdepend in depgraph["rdepends-pn"][package]: |
179 | self.depends_model.set (self.depends_model.append(), | 176 | self.depends_model.insert (0, (TYPE_RDEP, package, rdepend)) |
180 | COL_DEP_TYPE, TYPE_RDEP, | ||
181 | COL_DEP_PARENT, package, | ||
182 | COL_DEP_PACKAGE, rdepend) | ||
183 | 177 | ||
184 | 178 | ||
185 | class gtkthread(threading.Thread): | 179 | class gtkthread(threading.Thread): |