Explorar o código

optimize the performance

Sven Czarnian %!s(int64=3) %!d(string=hai) anos
pai
achega
7a1d4a5959
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      aman/sys/aco/Ant.py

+ 1 - 1
aman/sys/aco/Ant.py

@@ -103,7 +103,7 @@ class Ant:
         self.Sequence.append(first)
         self.SequenceDelay += self.associateInbound(self.Configuration.Inbounds[first], self.Configuration.EarliestArrivalTime)
 
-        while True:
+        while 1:
             index = self.selectNextLandingIndex(self.Sequence[-1])
             if None == index:
                 break