##// END OF EJS Templates
discovery: clarify why the caching of children is valid...
marmoute -
r42055:3ba9ca53 default
parent child Browse files
Show More
@@ -175,6 +175,10 b' class partialdiscovery(object):'
175 def _childrengetter(self):
175 def _childrengetter(self):
176
176
177 if self._childrenmap is not None:
177 if self._childrenmap is not None:
178 # During discovery, the `undecided` set keep shrinking.
179 # Therefore, the map computed for an iteration N will be
180 # valid for iteration N+1. Instead of computing the same
181 # data over and over we cached it the first time.
178 return self._childrenmap.__getitem__
182 return self._childrenmap.__getitem__
179
183
180 # _updatesample() essentially does interaction over revisions to look
184 # _updatesample() essentially does interaction over revisions to look
General Comments 0
You need to be logged in to leave comments. Login now