Benjamin Schubert pushed to branch bschubert/optimize-sort at BuildStream / buildstream
Commits:
-
a68a0782
by Benjamin Schubert at 2019-01-30T13:47:02Z
2 changed files:
Changes:
... | ... | @@ -52,6 +52,7 @@ class LoadElement(): |
52 | 52 |
self.name = filename # The element name
|
53 | 53 |
self.full_name = None # The element full name (with associated junction)
|
54 | 54 |
self.deps = None # The list of Dependency objects
|
55 |
+ self.index = None
|
|
55 | 56 |
|
56 | 57 |
#
|
57 | 58 |
# Private members
|
... | ... | @@ -329,7 +329,7 @@ class Loader(): |
329 | 329 |
|
330 | 330 |
element.deps.sort(key=cmp_to_key(sort_deps))
|
331 | 331 |
|
332 |
- element.id = next(element.next_id)
|
|
332 |
+ element.index = next(element.next_id)
|
|
333 | 333 |
|
334 | 334 |
return element
|
335 | 335 |
|