This eliminates an expensive getattr call in _get_hash_key(), which
greatly improves depgraph performance on a weak ARM cpu.
else:
self.operation = "merge"
+ self._hash_key = \
+ (self.type_name, self.root, self.cpv, self.operation)
+
def _validate_deps(self):
"""
Validate deps. This does not trigger USE calculation since that
return missing_iuse
def _get_hash_key(self):
- hash_key = getattr(self, "_hash_key", None)
- if hash_key is None:
- self._hash_key = \
- (self.type_name, self.root, self.cpv, self.operation)
return self._hash_key
def __lt__(self, other):